Mercurial > emacs
changeset 90899:f9569f59a835
(w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Sat, 02 Jun 2007 22:06:27 +0000 |
parents | 4d94a4dbcf99 |
children | a354dd1b920a |
files | src/w32fns.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/w32fns.c Sat Jun 02 00:50:32 2007 +0000 +++ b/src/w32fns.c Sat Jun 02 22:06:27 2007 +0000 @@ -4713,7 +4713,7 @@ if ((lf.lfPitchAndFamily & 0x03) == FIXED_PITCH) { /* Fixed width font. */ - fontp->average_width = fontp->space_width = FONT_WIDTH (font); + fontp->average_width = fontp->space_width = FONT_AVG_WIDTH (font); } else { @@ -4723,7 +4723,7 @@ if (pcm) fontp->space_width = pcm->width; else - fontp->space_width = FONT_WIDTH (font); + fontp->space_width = FONT_AVG_WIDTH (font); fontp->average_width = font->tm.tmAveCharWidth; } @@ -6267,7 +6267,7 @@ hdc = GetDC (dpyinfo->root_window); oldobj = SelectObject (hdc, thisinfo.hfont); if (GetTextMetrics (hdc, &thisinfo.tm)) - XSETCDR (tem, make_number (FONT_WIDTH (&thisinfo))); + XSETCDR (tem, make_number (FONT_AVG_WIDTH (&thisinfo))); else XSETCDR (tem, make_number (0)); SelectObject (hdc, oldobj);