(Fset_face_attribute_internal) [MSDOS]: Set font field to 1.

This commit is contained in:
Richard M. Stallman 1995-11-22 12:13:35 +00:00
parent 64ec6a0251
commit 88d9cecbc6

View file

@ -1156,7 +1156,9 @@ DEFUN ("set-face-attribute-internal", Fset_face_attribute_internal,
if (EQ (attr_name, intern ("font")))
{
#if defined (MSDOS) && !defined (HAVE_X_WINDOWS)
face->font = 0; /* The one and only font. */
/* The one and only font. Must *not* be zero (which
is taken to mean an unused face nowadays). */
face->font = (XFontStruct *)1 ;
#else
XFontStruct *font = load_font (f, attr_value);
if (face->font != f->output_data.x->font)