]> git.eshelyaron.com Git - emacs.git/commitdiff
(set_lface_from_font_and_fontset): Set the fontname in
authorKenichi Handa <handa@m17n.org>
Wed, 23 Jan 2008 11:14:12 +0000 (11:14 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 23 Jan 2008 11:14:12 +0000 (11:14 +0000)
lface.

src/xfaces.c

index ce7e9bec49842c4df0b6f63086b4ddbb01454e92..4f3509ebd30c2e7d18c9fe719d766357195cbe94 100644 (file)
@@ -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 */