# HG changeset patch # User Kenichi Handa # Date 917663834 0 # Node ID 4001ff593a99dae16e2c36a41939e811c493e120 # Parent c7888c86b9e1f42098548c877d23186978079655 (x_load_font): For the height of font, if normarl ascent and descent value are larger than those in max_bounds field, use the former. diff -r c7888c86b9e1 -r 4001ff593a99 src/xterm.c --- a/src/xterm.c Sat Jan 30 01:46:35 1999 +0000 +++ b/src/xterm.c Sat Jan 30 02:37:14 1999 +0000 @@ -6786,7 +6786,14 @@ fontp->full_name = fontp->name; fontp->size = font->max_bounds.width; - fontp->height = font->max_bounds.ascent + font->max_bounds.descent; + fontp->height = FONT_HEIGHT (font); + { + /* For some font, ascent and descent in max_bounds field is + larger than the above value. */ + int max_height = font->max_bounds.ascent + font->max_bounds.descent; + if (max_height > fontp->height) + fontp->height > max_height; + } if (NILP (font_names)) {