(realize_default_face): Don't set the weight and slant
authorEli Zaretskii <eliz@gnu.org>
Sat, 2 Feb 2002 18:07:56 +0000 (18:07 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 2 Feb 2002 18:07:56 +0000 (18:07 +0000)
of the default face to Qnormal, unless these attributes are
unspecified.

src/xfaces.c

index 704a31d..6180b2d 100644 (file)
@@ -6172,8 +6172,10 @@ realize_default_face (f)
       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;
     }