changeset 88458:49710fa82951

(try_font_list): Give higher priority to fontset's family than face's family.
author Kenichi Handa <handa@m17n.org>
date Tue, 07 May 2002 04:51:27 +0000
parents 478d6f47e263
children b26c2954b807
files src/xfaces.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfaces.c	Tue May 07 04:51:06 2002 +0000
+++ b/src/xfaces.c	Tue May 07 04:51:27 2002 +0000
@@ -6072,12 +6072,12 @@
   int nfonts = 0;
   Lisp_Object face_family = attrs[LFACE_FAMILY_INDEX];
 
-  if (STRINGP (face_family))
+  if (!NILP (family))
+    nfonts = try_alternative_families (f, family, registry, fonts);
+
+  if (nfonts == 0 && STRINGP (face_family))
     nfonts = try_alternative_families (f, face_family, registry, fonts);
 
-  if (nfonts == 0 && !NILP (family))
-    nfonts = try_alternative_families (f, family, registry, fonts);
-
   /* Try font family of the default face or "fixed".  */
   if (nfonts == 0)
     {