]> git.eshelyaron.com Git - emacs.git/commitdiff
(font_load_for_face): Handle the case that the font in
authorKenichi Handa <handa@m17n.org>
Fri, 25 Jan 2008 11:26:27 +0000 (11:26 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 25 Jan 2008 11:26:27 +0000 (11:26 +0000)
face->lface is a string.

src/font.c

index f9097d1f064b6fbaa04e3482c503ca58fa26d1c8..1e95315bdafa31519883898e60f256a322ccc75e 100644 (file)
@@ -2753,6 +2753,10 @@ font_load_for_face (f, face)
       if (! NILP (entity))
        font_object = font_open_for_lface (f, entity, face->lface, Qnil);
     }
+  else if (STRINGP (font_object))
+    {
+      font_object = font_open_by_name (f, SDATA (font_object));
+    }
 
   if (! NILP (font_object))
     {