From c1e7532dbde377c52f47a3657abe8da0b4ab1507 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 2 Feb 2002 18:07:56 +0000 Subject: [PATCH] (realize_default_face): Don't set the weight and slant of the default face to Qnormal, unless these attributes are unspecified. --- src/xfaces.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/xfaces.c b/src/xfaces.c index 704a31d9b3..6180b2d002 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; } -- 2.20.1