]> git.eshelyaron.com Git - emacs.git/commitdiff
(try_font_list): Pay attention to the case that FAMILY is nil.
authorKenichi Handa <handa@m17n.org>
Fri, 27 Sep 2002 00:47:25 +0000 (00:47 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 27 Sep 2002 00:47:25 +0000 (00:47 +0000)
src/ChangeLog
src/xfaces.c

index bae54ef29a73b8f1d17a8f0450ee36759ca391c7..73abc9bdfa4e2c91f20d4e69751bb23d39583964 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-27  Kenichi Handa  <handa@etl.go.jp>
+
+       * xfaces.c (try_font_list): Pay attention to the case that FAMILY
+       is nil.
+
 2002-09-26  Richard M. Stallman  <rms@gnu.org>
 
        * regex.h (__restrict_arr): Don't define if already defined.
index 57749ea5634eb96e2fe2ba2856e3819ac167c49c..d5ddd6b40de70efc756ce31f27748b161f5ba609 100644 (file)
@@ -6343,7 +6343,7 @@ try_font_list (f, attrs, family, registry, fonts, prefer_face_family)
   Lisp_Object face_family = attrs[LFACE_FAMILY_INDEX];
   Lisp_Object try_family;
 
-  try_family = prefer_face_family ? face_family : family;
+  try_family = (prefer_face_family || NILP (family)) ? face_family : family;
 
   if (STRINGP (try_family))
     nfonts = try_alternative_families (f, try_family, registry, fonts);
@@ -6359,7 +6359,7 @@ try_font_list (f, attrs, family, registry, fonts, prefer_face_family)
     nfonts = try_alternative_families (f, try_family, Qnil, fonts);
 #endif
 
-  if (! prefer_face_family)
+  if (EQ (try_family, family))
     family = face_family;
 
   if (nfonts == 0 && STRINGP (family))