mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-25 06:17:34 +00:00
(Fset_face_attribute_internal): Don't call unload_font
for the frame's own font.
This commit is contained in:
parent
6515fde491
commit
ebc64af3a0
1 changed files with 2 additions and 1 deletions
|
|
@ -863,7 +863,8 @@ DEFUN ("set-face-attribute-internal", Fset_face_attribute_internal,
|
|||
if (EQ (attr_name, intern ("font")))
|
||||
{
|
||||
XFontStruct *font = load_font (f, attr_value);
|
||||
unload_font (f, face->font);
|
||||
if (face->font != f->display.x->font)
|
||||
unload_font (f, face->font);
|
||||
face->font = font;
|
||||
}
|
||||
else if (EQ (attr_name, intern ("foreground")))
|
||||
|
|
|
|||
Loading…
Reference in a new issue