changeset 90902:8bc489730b6f

(x_font_min_bounds): Use FONT_AVG_WIDTH. (w32_cache_char_metrics): Use FONT_WIDTH.
author Jason Rumney <jasonr@gnu.org>
date Sat, 02 Jun 2007 22:11:44 +0000
parents bca4afff760c
children c3e1394462ec
files src/w32term.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32term.c	Sat Jun 02 22:07:16 2007 +0000
+++ b/src/w32term.c	Sat Jun 02 22:11:44 2007 +0000
@@ -1062,9 +1062,9 @@
         {
           /* 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 @@
    * average and maximum width, and maximum height.
    */
   *h = FONT_HEIGHT (font);
-  *w = FONT_WIDTH (font);
+  *w = FONT_AVG_WIDTH (font);
 }