aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2023-11-25 12:30:03 +0200
committerEli Zaretskii2023-11-25 12:30:03 +0200
commit38e2291cce0e396dcb6f379cf74471ab9504522b (patch)
treedfdeeee3af010047baf3dd3d74629e6f12d7fd38
parentdd1c5cca70f77efb739f0157cac75ac7fd289fe2 (diff)
downloademacs-38e2291cce0e396dcb6f379cf74471ab9504522b.tar.gz
emacs-38e2291cce0e396dcb6f379cf74471ab9504522b.zip
Fix merging italic and underline faces with other fonts
* lisp/faces.el (italic, underline): Leave the 'slant' resp. 'underline' attributes even when they are not supported by the default font. (Bug#67269)
-rw-r--r--lisp/faces.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index 7eacc40443a..8eaabbffc0e 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -2440,7 +2440,10 @@ If you set `term-file-prefix' to nil, this function does nothing."
2440 '((((supports :slant italic)) 2440 '((((supports :slant italic))
2441 :slant italic) 2441 :slant italic)
2442 (((supports :underline t)) 2442 (((supports :underline t))
2443 :underline t) 2443 ;; Include italic, even if it isn't supported by the default
2444 ;; font, because this face could be merged with another face
2445 ;; which uses font that does have an italic variant.
2446 :underline t :slant italic)
2444 (t 2447 (t
2445 ;; Default to italic, even if it doesn't appear to be supported, 2448 ;; Default to italic, even if it doesn't appear to be supported,
2446 ;; because in some cases the display engine will do its own 2449 ;; because in some cases the display engine will do its own
@@ -2457,7 +2460,9 @@ If you set `term-file-prefix' to nil, this function does nothing."
2457(defface underline 2460(defface underline
2458 '((((supports :underline t)) 2461 '((((supports :underline t))
2459 :underline t) 2462 :underline t)
2460 (((supports :weight bold)) 2463 ;; Include underline, for when this face is merged with another
2464 ;; whose font does support underline.
2465 (((supports :weight bold :underline t))
2461 :weight bold) 2466 :weight bold)
2462 (t :underline t)) 2467 (t :underline t))
2463 "Basic underlined face." 2468 "Basic underlined face."