aboutsummaryrefslogtreecommitdiffstats
path: root/src/fontset.c
diff options
context:
space:
mode:
authorKenichi Handa2008-08-19 07:45:55 +0000
committerKenichi Handa2008-08-19 07:45:55 +0000
commitcd872f08bf64c2994ac9dddf9723d78ffda896de (patch)
tree20c2afcaff752926f490b80465771bf6924d6e90 /src/fontset.c
parent3cf38f9777d37722a3928258f3d7ecfc21a51c52 (diff)
downloademacs-cd872f08bf64c2994ac9dddf9723d78ffda896de.tar.gz
emacs-cd872f08bf64c2994ac9dddf9723d78ffda896de.zip
(reorder_font_vector): Use encoding charset of fonts
for sorting. (face_for_char): Use deferred log.
Diffstat (limited to 'src/fontset.c')
-rw-r--r--src/fontset.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fontset.c b/src/fontset.c
index a343e27e510..77d603ad4ea 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -419,16 +419,16 @@ reorder_font_vector (font_group, font)
419 419
420 if (! font_match_p (font_spec, font_object)) 420 if (! font_match_p (font_spec, font_object))
421 { 421 {
422 Lisp_Object repertory = FONT_DEF_REPERTORY (font_def); 422 Lisp_Object encoding = FONT_DEF_ENCODING (font_def);
423 423
424 if (! NILP (repertory)) 424 if (! NILP (encoding))
425 { 425 {
426 Lisp_Object tail; 426 Lisp_Object tail;
427 427
428 for (tail = Vcharset_ordered_list; 428 for (tail = Vcharset_ordered_list;
429 ! EQ (tail, Vcharset_non_preferred_head) && CONSP (tail); 429 ! EQ (tail, Vcharset_non_preferred_head) && CONSP (tail);
430 score += 0x100, tail = XCDR (tail)) 430 score += 0x100, tail = XCDR (tail))
431 if (EQ (repertory, XCAR (tail))) 431 if (EQ (encoding, XCAR (tail)))
432 break; 432 break;
433 } 433 }
434 else 434 else
@@ -904,7 +904,7 @@ face_for_char (f, face, c, pos, object)
904 } 904 }
905 } 905 }
906 906
907 font_add_log ("finding a font for", Fcons (make_number (c), charset), Qnil); 907 font_deferred_log ("font for", Fcons (make_number (c), charset), Qnil);
908 rfont_def = fontset_font (fontset, c, face, id); 908 rfont_def = fontset_font (fontset, c, face, id);
909 if (VECTORP (rfont_def)) 909 if (VECTORP (rfont_def))
910 { 910 {