]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_load_font): Don't use the font's max_bounds for
authorGerd Moellmann <gerd@gnu.org>
Wed, 6 Dec 2000 10:47:03 +0000 (10:47 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 6 Dec 2000 10:47:03 +0000 (10:47 +0000)
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.

src/ChangeLog
src/xterm.c

index a3d3a31d4c66d8b5cec6c63198fd3698d6b22251..38b12414b86d60f6c918db4b36aefd776cdeafc4 100644 (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',
index da53834e08fa759a75948a901a616cd2d42ead01..f30ee0159fdcbe4edaf6ac1f82d5991383036a09 100644 (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))
       {