changeset 95570:b18ab5e0d568

(fontset_find_font): Call font_open_for_lface with the current font-spec.
author Kenichi Handa <handa@m17n.org>
date Thu, 05 Jun 2008 04:56:02 +0000
parents 2bf09d117bb6
children 49efb79bb63b
files src/fontset.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/fontset.c	Thu Jun 05 04:18:55 2008 +0000
+++ b/src/fontset.c	Thu Jun 05 04:56:02 2008 +0000
@@ -608,7 +608,8 @@
 	      RFONT_DEF_SET_FACE (elt, -1);
 	      continue;
 	    }
-	  font_object = font_open_for_lface (f, font_entity, face->lface, Qnil);
+	  font_object = font_open_for_lface (f, font_entity, face->lface,
+					     FONT_DEF_SPEC (font_def));
 	  if (NILP (font_object))
 	    {
 	      /* Record that the font is unsable.  */