From c8ea71f6869bbb2fb4dee9ab74da81c497f2e799 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 25 Jan 2008 11:26:27 +0000 Subject: [PATCH] (font_load_for_face): Handle the case that the font in face->lface is a string. --- src/font.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/font.c b/src/font.c index f9097d1f064..1e95315bdaf 100644 --- a/src/font.c +++ b/src/font.c @@ -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)) { -- 2.39.5