From 7c0b3f4dc812920bec710d56e7f48b3cf0b83dd3 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Wed, 23 Jan 2008 11:14:12 +0000 Subject: [PATCH] (set_lface_from_font_and_fontset): Set the fontname in lface. --- src/xfaces.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xfaces.c b/src/xfaces.c index ce7e9bec498..4f3509ebd30 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -3694,7 +3694,8 @@ set_lface_from_font_and_fontset (f, lface, font_object, fontset, force_p) LFACE_SWIDTH (lface) = ! NILP (val) ? val : width; } - LFACE_FONT (lface) = font_object; + LFACE_FONT (lface) = make_unibyte_string (font->font.full_name, + strlen (font->font.full_name)); LFACE_FONTSET (lface) = fontset_name (fontset); } #endif /* USE_FONT_BACKEND */ -- 2.39.5