]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_font_min_bounds): Use FONT_AVG_WIDTH.
authorJason Rumney <jasonr@gnu.org>
Sat, 2 Jun 2007 22:11:44 +0000 (22:11 +0000)
committerJason Rumney <jasonr@gnu.org>
Sat, 2 Jun 2007 22:11:44 +0000 (22:11 +0000)
(w32_cache_char_metrics): Use FONT_WIDTH.

src/w32term.c

index 2d3969001d8d68bfd6d8b499e0b4c63f7c359d4c..f3fed6b8e633e6db8fe987884363c70589c91a91 100644 (file)
@@ -1062,9 +1062,9 @@ w32_cache_char_metrics (font)
         {
           /* Use the font width and height as max bounds, as not all BDF
              fonts contain the letter 'x'. */
-          font->max_bounds.width = FONT_MAX_WIDTH (font);
+          font->max_bounds.width = FONT_WIDTH (font);
           font->max_bounds.lbearing = -font->bdf->llx;
-          font->max_bounds.rbearing = FONT_MAX_WIDTH (font) - font->bdf->urx;
+          font->max_bounds.rbearing = FONT_WIDTH (font) - font->bdf->urx;
           font->max_bounds.ascent = FONT_BASE (font);
           font->max_bounds.descent = FONT_DESCENT (font);
         }
@@ -6544,7 +6544,7 @@ x_font_min_bounds (font, w, h)
    * average and maximum width, and maximum height.
    */
   *h = FONT_HEIGHT (font);
-  *w = FONT_WIDTH (font);
+  *w = FONT_AVG_WIDTH (font);
 }