Commit c0a6070d authored by Kenichi Handa's avatar Kenichi Handa

(font_score): Check AVGWIDTH too.

parent 19a4c504
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.
......
......@@ -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];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment