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
f1eed8ff
Commit
f1eed8ff
authored
Oct 21, 2000
by
Jason Rumney
Browse files
(w32_cache_char_metrics): Double check that font is
really fixed pitch before trusting tmPitchAndFamily.
parent
ea4233a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/w32term.c
src/w32term.c
+4
-1
No files found.
src/w32term.c
View file @
f1eed8ff
...
...
@@ -1284,7 +1284,10 @@ w32_cache_char_metrics (font)
}
else
{
if ((font->tm.tmPitchAndFamily & TMPF_FIXED_PITCH) != 0)
if (((font->tm.tmPitchAndFamily & TMPF_FIXED_PITCH) != 0)
/* Some fonts (eg DBCS fonts) are marked as fixed width even
though they contain characters of different widths. */
|| (font->tm.tmMaxCharWidth != font->tm.tmAveCharWidth))
{
/* Font is not fixed pitch, so cache per_char info for the
ASCII characters. It would be much more work, and probably
...
...
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