comparison src/xterm.c @ 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 d4ee4399e999
comparison
equal deleted inserted replaced
24223:c7888c86b9e1 24224:4001ff593a99
6784 fontp->full_name = full_name; 6784 fontp->full_name = full_name;
6785 else 6785 else
6786 fontp->full_name = fontp->name; 6786 fontp->full_name = fontp->name;
6787 6787
6788 fontp->size = font->max_bounds.width; 6788 fontp->size = font->max_bounds.width;
6789 fontp->height = font->max_bounds.ascent + font->max_bounds.descent; 6789 fontp->height = FONT_HEIGHT (font);
6790 {
6791 /* For some font, ascent and descent in max_bounds field is
6792 larger than the above value. */
6793 int max_height = font->max_bounds.ascent + font->max_bounds.descent;
6794 if (max_height > fontp->height)
6795 fontp->height > max_height;
6796 }
6790 6797
6791 if (NILP (font_names)) 6798 if (NILP (font_names))
6792 { 6799 {
6793 /* We come here because of a bug of XListFonts mentioned at 6800 /* We come here because of a bug of XListFonts mentioned at
6794 the head of this block. Let's store this information in 6801 the head of this block. Let's store this information in