#ifdef HAVE_WINDOW_SYSTEM
struct face *default_face;
struct frame *f;
- Lisp_Object stipple, underline, overline, strike_through, box, temp_spec;
- Lisp_Object temp_extra, antialias;
+ Lisp_Object stipple, underline, overline, strike_through, box;
eassert (FRAME_WINDOW_P (cache->f));
emacs_abort ();
}
if (! FONT_OBJECT_P (attrs[LFACE_FONT_INDEX]))
- {
- /* We want attrs to allow overriding most elements in the
- spec (IOW, to start out as an empty font spec), but
- preserve the antialiasing attribute. (bug#17973,
- bug#37473). */
- temp_spec = Ffont_spec (0, NULL);
- temp_extra = AREF (attrs[LFACE_FONT_INDEX],
- FONT_EXTRA_INDEX);
- /* If `:antialias' wasn't specified, keep it unspecified
- instead of changing it to nil. */
-
- if (CONSP (temp_extra))
- antialias = Fassq (QCantialias, temp_extra);
- else
- antialias = Qnil;
-
- if (FONTP (attrs[LFACE_FONT_INDEX]) && !NILP (antialias))
- Ffont_put (temp_spec, QCantialias, Fcdr (antialias));
-
- attrs[LFACE_FONT_INDEX]
- = font_load_for_lface (f, attrs, temp_spec);
- }
+ attrs[LFACE_FONT_INDEX]
+ = font_load_for_lface (f, attrs, attrs[LFACE_FONT_INDEX]);
if (FONT_OBJECT_P (attrs[LFACE_FONT_INDEX]))
{
face->font = XFONT_OBJECT (attrs[LFACE_FONT_INDEX]);