(face-bold-p): Don't return t if face has lighter
authorGerd Moellmann <gerd@gnu.org>
Mon, 6 Sep 1999 15:57:48 +0000 (15:57 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 6 Sep 1999 15:57:48 +0000 (15:57 +0000)
weight than normal.

lisp/faces.el

index 22fdc20..2fef37d 100644 (file)
@@ -370,7 +370,7 @@ If FRAME is t, report on the defaults for face FACE (for new frames).
 If FRAME is omitted or nil, use the selected frame.
 Use `face-attribute' for finer control."
   (let ((bold (face-attribute face :weight frame)))
-    (not (memq bold '(normal unspecified)))))
+    (memq bold '(semi-bold bold extra-bold ultra-bold))))
 
 
 (defun face-italic-p (face &optional frame)