]> code.delx.au - gnu-emacs/commitdiff
(FONT_WIDTH): Report max width, not average.
authorJason Rumney <jasonr@gnu.org>
Sat, 2 Jun 2007 22:06:44 +0000 (22:06 +0000)
committerJason Rumney <jasonr@gnu.org>
Sat, 2 Jun 2007 22:06:44 +0000 (22:06 +0000)
(FONT_MAX_WIDTH): Remove.
(FONT_AVG_WIDTH): New macro.

src/w32term.h

index 52b6d9c9427776ece5dbc2aef4934f7764b129c7..6eb7988b48520445006b597cc5c65ddbc15085c8 100644 (file)
@@ -28,15 +28,15 @@ Boston, MA 02110-1301, USA.  */
 #define WHITE_PIX_DEFAULT(f) PALETTERGB(255,255,255)
 
 #define FONT_WIDTH(f)       \
-  ((f)->bdf ? (f)->bdf->width : (f)->tm.tmAveCharWidth)
+  ((f)->bdf ? (f)->bdf->width : (f)->tm.tmMaxCharWidth)
 #define FONT_HEIGHT(f)      \
    ((f)->bdf ? (f)->bdf->height : (f)->tm.tmHeight)
 #define FONT_BASE(f)        \
   ((f)->bdf ? (f)->bdf->ury : (f)->tm.tmAscent)
 #define FONT_DESCENT(f)     \
   ((f)->bdf ? -((f)->bdf->lly) : (f)->tm.tmDescent)
-#define FONT_MAX_WIDTH(f)   \
-  ((f)->bdf ? (f)->bdf->width : (f)->tm.tmMaxCharWidth)
+#define FONT_AVG_WIDTH(f)   \
+  ((f)->bdf ? (f)->bdf->width : (f)->tm.tmAveCharWidth)
 
 #define CP_DEFAULT 1004
 /* Special pseudo-codepages. */