Commit 7b9226ba authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(set_lface_from_font_name): If a font doesn't have a

name, set LFACE_FONT (lface) to nil.
parent 9df50a31
......@@ -3628,8 +3628,11 @@ set_lface_from_font_name (f, lface, fontname, force_p, may_fail_p)
LFACE_SWIDTH (lface) = NILP (symbol) ? width : symbol;
}
ASET (lface, LFACE_FONT_INDEX, Ffont_xlfd_name (font->entity));
ASET (lface, LFACE_FONTSET_INDEX, fontset_name (fontset));
if (font->font.full_name)
LFACE_FONT (lface) = build_string (font->font.full_name);
else
LFACE_FONT (lface) = Qnil;
LFACE_FONTSET (lface) = fontset_name (fontset);
return 1;
}
#endif /* USE_FONT_BACKEND */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment