summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-11-22 12:13:35 +0000
committerRichard M. Stallman <rms@gnu.org>1995-11-22 12:13:35 +0000
commit24f993d2c505d16a3861247af44a7a0d31b7342f (patch)
treec1de79ebb7c6540085de2a1a85bb809f433dfb38 /src
parentff7eeee16327be0b61428604ce1dd6b0f0f4ebfb (diff)
downloademacs-24f993d2c505d16a3861247af44a7a0d31b7342f.tar.gz
(Fset_face_attribute_internal) [MSDOS]: Set font field to 1.
Diffstat (limited to 'src')
-rw-r--r--src/xfaces.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index 738acbd915c..d99ce172d3c 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -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)