From: Eli Zaretskii Date: Sat, 2 Feb 2002 18:07:56 +0000 (+0000) Subject: (realize_default_face): Don't set the weight and slant X-Git-Tag: ttn-vms-21-2-B4~16878 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c1e7532dbde377c52f47a3657abe8da0b4ab1507;p=emacs.git (realize_default_face): Don't set the weight and slant of the default face to Qnormal, unless these attributes are unspecified. --- diff --git a/src/xfaces.c b/src/xfaces.c index 704a31d9b35..6180b2d0020 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -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; }