Mercurial > emacs
changeset 95875:d56319d0f726
(font_score): Ignore the diffference of alias style symbols.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 13 Jun 2008 04:22:07 +0000 |
parents | eafbd7a5c9be |
children | f504cb581d25 |
files | src/font.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/font.c Fri Jun 13 04:20:28 2008 +0000 +++ b/src/font.c Fri Jun 13 04:22:07 2008 +0000 @@ -2117,9 +2117,8 @@ if (diff < 0) diff = - diff; - /* This is to prefer the exact symbol style. */ - diff++; - score |= min (diff, 127) << sort_shift_bits[i]; + if (diff > 0) + score |= min (diff, 127) << sort_shift_bits[i]; } /* Score the size. Maximum difference is 127. */