Mercurial > emacs
changeset 90900:a354dd1b920a
(FONT_WIDTH): Report max width, not average.
(FONT_MAX_WIDTH): Remove.
(FONT_AVG_WIDTH): New macro.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Sat, 02 Jun 2007 22:06:44 +0000 |
parents | f9569f59a835 |
children | bca4afff760c |
files | src/w32term.h |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/w32term.h Sat Jun 02 22:06:27 2007 +0000 +++ b/src/w32term.h Sat Jun 02 22:06:44 2007 +0000 @@ -28,15 +28,15 @@ #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. */