aboutsummaryrefslogtreecommitdiffstats
path: root/src/font.c
diff options
context:
space:
mode:
authorKenichi Handa2008-06-13 04:26:01 +0000
committerKenichi Handa2008-06-13 04:26:01 +0000
commitf4cc015342c6cb3cdd4c133a0df3623e05d7de87 (patch)
tree0a7551cc30209a4d486c4ed36a6664cbd5d9ebbb /src/font.c
parent6f0933071661f68428a91470cbcbd1e358496d43 (diff)
downloademacs-f4cc015342c6cb3cdd4c133a0df3623e05d7de87.tar.gz
emacs-f4cc015342c6cb3cdd4c133a0df3623e05d7de87.zip
(font_score): Ignore the diffference of alias style symbols.
Diffstat (limited to 'src/font.c')
-rw-r--r--src/font.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/font.c b/src/font.c
index 6c29a4487bd..71f5c1d03f8 100644
--- a/src/font.c
+++ b/src/font.c
@@ -2117,9 +2117,8 @@ font_score (entity, spec_prop)
2117 2117
2118 if (diff < 0) 2118 if (diff < 0)
2119 diff = - diff; 2119 diff = - diff;
2120 /* This is to prefer the exact symbol style. */ 2120 if (diff > 0)
2121 diff++; 2121 score |= min (diff, 127) << sort_shift_bits[i];
2122 score |= min (diff, 127) << sort_shift_bits[i];
2123 } 2122 }
2124 2123
2125 /* Score the size. Maximum difference is 127. */ 2124 /* Score the size. Maximum difference is 127. */