diff options
| author | Richard M. Stallman | 1995-11-22 12:13:35 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-11-22 12:13:35 +0000 |
| commit | 88d9cecbc62b1eaaa66bc4fda97ba3582456b4b4 (patch) | |
| tree | 3ae720ccaa1cffee30782392ca0ce48a9b3fba63 /src | |
| parent | 64ec6a0251ddf416adf2c95a1690cb0dc6289088 (diff) | |
| download | emacs-88d9cecbc62b1eaaa66bc4fda97ba3582456b4b4.tar.gz emacs-88d9cecbc62b1eaaa66bc4fda97ba3582456b4b4.zip | |
(Fset_face_attribute_internal) [MSDOS]: Set font field to 1.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfaces.c | 4 |
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, | |||
| 1156 | if (EQ (attr_name, intern ("font"))) | 1156 | if (EQ (attr_name, intern ("font"))) |
| 1157 | { | 1157 | { |
| 1158 | #if defined (MSDOS) && !defined (HAVE_X_WINDOWS) | 1158 | #if defined (MSDOS) && !defined (HAVE_X_WINDOWS) |
| 1159 | face->font = 0; /* The one and only font. */ | 1159 | /* The one and only font. Must *not* be zero (which |
| 1160 | is taken to mean an unused face nowadays). */ | ||
| 1161 | face->font = (XFontStruct *)1 ; | ||
| 1160 | #else | 1162 | #else |
| 1161 | XFontStruct *font = load_font (f, attr_value); | 1163 | XFontStruct *font = load_font (f, attr_value); |
| 1162 | if (face->font != f->output_data.x->font) | 1164 | if (face->font != f->output_data.x->font) |