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.
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];
}