Mercurial > emacs
changeset 24224:4001ff593a99
(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.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Sat, 30 Jan 1999 02:37:14 +0000 |
parents | c7888c86b9e1 |
children | 985eb547550f |
files | src/xterm.c |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)) {