changeset 97556:0fc47f017980

(reorder_font_vector): Use encoding charset of fonts for sorting. (face_for_char): Use deferred log.
author Kenichi Handa <handa@m17n.org>
date Tue, 19 Aug 2008 07:45:55 +0000
parents 12c8fcc4c171
children d88727c5f6c8
files src/fontset.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/fontset.c	Tue Aug 19 04:49:08 2008 +0000
+++ b/src/fontset.c	Tue Aug 19 07:45:55 2008 +0000
@@ -419,16 +419,16 @@
 
       if (! font_match_p (font_spec, font_object))
 	{
-	  Lisp_Object repertory = FONT_DEF_REPERTORY (font_def);
+	  Lisp_Object encoding = FONT_DEF_ENCODING (font_def);
 
-	  if (! NILP (repertory))
+	  if (! NILP (encoding))
 	    {
 	      Lisp_Object tail;
 
 	      for (tail = Vcharset_ordered_list;
 		   ! EQ (tail, Vcharset_non_preferred_head) && CONSP (tail);
 		   score += 0x100, tail = XCDR (tail))
-		if (EQ (repertory, XCAR (tail)))
+		if (EQ (encoding, XCAR (tail)))
 		  break;
 	    }
 	  else
@@ -904,7 +904,7 @@
 	}
     }
 
-  font_add_log ("finding a font for", Fcons (make_number (c), charset), Qnil);
+  font_deferred_log ("font for", Fcons (make_number (c), charset), Qnil);
   rfont_def = fontset_font (fontset, c, face, id);
   if (VECTORP (rfont_def))
     {