Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
88fce384
Commit
88fce384
authored
Jun 02, 2007
by
Jason Rumney
Browse files
(w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
parent
6d8c85b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/w32fns.c
src/w32fns.c
+3
-3
No files found.
src/w32fns.c
View file @
88fce384
...
...
@@ -4713,7 +4713,7 @@ w32_load_system_font (f,fontname,size)
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 @@ w32_load_system_font (f,fontname,size)
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 @@ w32_list_fonts (f, pattern, size, maxnames)
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);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment