changeset 43069:e1291f1c4a5b

(realize_default_face): Don't set the weight and slant of the default face to Qnormal, unless these attributes are unspecified.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 02 Feb 2002 18:07:56 +0000
parents ddfa98341413
children f1106407a9cc
files src/xfaces.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfaces.c	Sat Feb 02 16:54:59 2002 +0000
+++ b/src/xfaces.c	Sat Feb 02 18:07:56 2002 +0000
@@ -6172,8 +6172,10 @@
       LFACE_FAMILY (lface) = build_string ("default");
       LFACE_SWIDTH (lface) = Qnormal;
       LFACE_HEIGHT (lface) = make_number (1);
-      LFACE_WEIGHT (lface) = Qnormal;
-      LFACE_SLANT (lface) = Qnormal;
+      if (UNSPECIFIEDP (LFACE_WEIGHT (lface)))
+	LFACE_WEIGHT (lface) = Qnormal;
+      if (UNSPECIFIEDP (LFACE_SLANT (lface)))
+	LFACE_SLANT (lface) = Qnormal;
       LFACE_AVGWIDTH (lface) = Qunspecified;
     }