1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-23 10:34:07 +00:00

(x_load_font): Don't use the font's max_bounds for

computing the height of the font.  If max_bounds' ascent or
descent are greater than the font's ascent or descent, this means
glyphs overlap, which should be handled now by redisplay.
This commit is contained in:
Gerd Moellmann 2000-12-06 10:47:03 +00:00
parent 11753d04cb
commit 9765b4a487
2 changed files with 7 additions and 7 deletions

View File

@ -1,3 +1,10 @@
2000-12-06 Gerd Moellmann <gerd@gnu.org>
* xterm.c (x_load_font): Don't use the font's max_bounds for
computing the height of the font. If max_bounds' ascent or
descent are greater than the font's ascent or descent, this means
glyphs overlap, which should be handled now by redisplay.
2000-12-06 Miles Bader <miles@gnu.org>
* xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',

View File

@ -13213,13 +13213,6 @@ x_load_font (f, fontname, size)
fontp->size = font->max_bounds.width;
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))
{