aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2008-06-13 04:26:01 +0000
committerKenichi Handa2008-06-13 04:26:01 +0000
commitf4cc015342c6cb3cdd4c133a0df3623e05d7de87 (patch)
tree0a7551cc30209a4d486c4ed36a6664cbd5d9ebbb
parent6f0933071661f68428a91470cbcbd1e358496d43 (diff)
downloademacs-f4cc015342c6cb3cdd4c133a0df3623e05d7de87.tar.gz
emacs-f4cc015342c6cb3cdd4c133a0df3623e05d7de87.zip
(font_score): Ignore the diffference of alias style symbols.
-rw-r--r--src/ChangeLog44
-rw-r--r--src/font.c5
2 files changed, 46 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 6e181f60cd2..a648ca5cbbf 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,47 @@
12008-06-13 Kenichi Handa <handa@m17n.org>
2
3 * dispextern.h (enum lface_attribute_index): New member
4 LFACE_FOUNDRY_INDEX.
5
6 * font.c (font_score): Delete arg alternate_families. Check only
7 weight, slant, width, and size. Ignore the diffference of alias
8 style symbols.
9 (font_sort_entites): Adjusted for the above change. Reflect the
10 order of font-driver to scores.
11 (font_list_entities): Don't check alternate_familes here.
12 (font_clear_prop): Handle foundry.
13 (font_update_lface): Don't parse "foundry-family" form here.
14 Handle FONT_FOUNDRY_INDEX.
15 (font_find_for_lface): Likewise. Handle alternate families here.
16 (font_open_for_lface): Pay attention to size in ENTITY.
17 (font_open_by_name): Simplified by calling font_load_for_lface.
18 (free_font_driver_list): Delete it.
19 (font_update_drivers): Preserve the order of backends.
20 (syms_of_font): Setting of sort_shift_bits adjusted for the change
21 of font_score and font_sort_entites.
22 (font_update_sort_order): Likewise.
23
24 * xfaces.c (LFACE_FOUNDRY): New macro.
25 (check_lface_attrs): Check foundry.
26 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" from.
27 (merge_face_vectors): Check foundry.
28 (merge_face_ref): Likewise.
29 (Finternal_set_lisp_face_attribute): Likewise.
30 (x_update_menu_appearance): Likewise.
31 (Finternal_get_lisp_face_attribute): Likewise.
32 (lface_hash): Likewise.
33 (lface_same_font_attributes_p): Likewise.
34 (x_supports_face_attributes_p): Likewise.
35 (tty_supports_face_attributes_p): Likewise.
36 (Finternal_set_alternative_font_family_alist): Intern strings.
37 (Finternal_set_alternative_font_registry_alist): Downcase strings.
38 (realize_default_face): Set LFACE_FOUNDRY (lface).
39
40 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
41 font-driver at first.
42
43 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
44
12008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change) 452008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2 46
3 * lread.c (Fload): Use xfree, not free on saved_doc_string. 47 * lread.c (Fload): Use xfree, not free on saved_doc_string.
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. */