emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ef-themes e05c87ac45 3/4: Explicitly support 'bold' and


From: ELPA Syncer
Subject: [elpa] externals/ef-themes e05c87ac45 3/4: Explicitly support 'bold' and 'italic' faces
Date: Tue, 23 Aug 2022 01:57:36 -0400 (EDT)

branch: externals/ef-themes
commit e05c87ac456b8c857ac240d5838afc2fb396fc5c
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Explicitly support 'bold' and 'italic' faces
    
    The default definition of 'italic' has conditionality which we do not
    want, such as drawing an underline if the font does not have italics.
    Styling it here prevents that from happening: the font without italics
    will simply use the upright style.
    
    Adding 'bold' here is just for clarity.  Its default definition is fine.
---
 ef-themes.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ef-themes.el b/ef-themes.el
index beafc3452a..55a36549c6 100644
--- a/ef-themes.el
+++ b/ef-themes.el
@@ -526,6 +526,8 @@ Helper function for `ef-themes-preview-colors'."
 ;;;; all basic faces
     `(default ((,c :background ,bg-main :foreground ,fg-main)))
     `(cursor ((,c :background ,cursor)))
+    `(bold ((,c :weight bold)))
+    `(italic ((,c :slant italic)))
     `(bold-italic ((,c :inherit (bold italic))))
     `(region ((,c :background ,bg-region)))
     `(comint-highlight-input ((,c :inherit bold)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]