changeset 89838:dd77c0989865

(set_lface_from_font_name): If a font is specified for a frame, generate a fontset from the font.
author Kenichi Handa <handa@m17n.org>
date Thu, 04 Mar 2004 00:43:10 +0000
parents d6008ecc47e5
children 054d8a8ba791
files src/xfaces.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfaces.c	Wed Mar 03 12:38:28 2004 +0000
+++ b/src/xfaces.c	Thu Mar 04 00:43:10 2004 +0000
@@ -3360,7 +3360,12 @@
       LFACE_FONTSET (lface) = fontset_name (fontset);
     }
   else
-    LFACE_FONT (lface) = fontname;
+    {
+      LFACE_FONT (lface) = fontname;
+      fontset
+	= new_fontset_from_font_name (build_string (font_info->full_name));
+      LFACE_FONTSET (lface) = fontset_name (fontset);
+    }
   return 1;
 }