diff options
author | Eli Zaretskii <eliz@gnu.org> | 2002-02-02 18:07:56 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2002-02-02 18:07:56 +0000 |
commit | c1e7532dbde377c52f47a3657abe8da0b4ab1507 (patch) | |
tree | 061e7c60e9a8bf76a4fd3668953f34731e29e57c /src/xfaces.c | |
parent | f04f5c7689cdbb0cb6a89bb75dcb064d64512cf0 (diff) | |
download | emacs-c1e7532dbde377c52f47a3657abe8da0b4ab1507.tar.gz |
(realize_default_face): Don't set the weight and slant
of the default face to Qnormal, unless these attributes are
unspecified.
Diffstat (limited to 'src/xfaces.c')
-rw-r--r-- | src/xfaces.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; } |