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
c0a6070d
Commit
c0a6070d
authored
Apr 21, 2009
by
Kenichi Handa
Browse files
(font_score): Check AVGWIDTH too.
parent
19a4c504
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
src/ChangeLog
src/ChangeLog
+1
-0
src/font.c
src/font.c
+3
-0
No files found.
src/ChangeLog
View file @
c0a6070d
2009-04-21 Kenichi Handa <handa@m17n.org>
* font.c (font_load_for_lface): Cancel previous change.
(font_score): Check AVGWIDTH too.
* coding.c (decode_coding_utf_16): Reduce charbuf_end for the
worst case.
...
...
src/font.c
View file @
c0a6070d
...
...
@@ -2270,6 +2270,9 @@ font_score (entity, spec_prop)
if (! NILP (spec_prop[FONT_DPI_INDEX])
&& ! EQ (spec_prop[FONT_DPI_INDEX], AREF (entity, FONT_DPI_INDEX)))
diff |= 1;
if (! NILP (spec_prop[FONT_AVGWIDTH_INDEX])
&& ! EQ (spec_prop[FONT_AVGWIDTH_INDEX], AREF (entity, FONT_AVGWIDTH_INDEX)))
diff |= 1;
score |= min (diff, 127) << sort_shift_bits[FONT_SIZE_INDEX];
}
...
...
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