[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/show-font 2f55db5bad 02/54: Fix rendering of title and
From: |
ELPA Syncer |
Subject: |
[elpa] externals/show-font 2f55db5bad 02/54: Fix rendering of title and subtitle in the given font |
Date: |
Tue, 10 Sep 2024 03:58:56 -0400 (EDT) |
branch: externals/show-font
commit 2f55db5bada795e9f4b157a69522a23bb4a24409
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Fix rendering of title and subtitle in the given font
---
show-font.el | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/show-font.el b/show-font.el
index aaae51f9d5..1e2161807d 100644
--- a/show-font.el
+++ b/show-font.el
@@ -181,12 +181,14 @@ matched against the output of the `fc-scan' executable."
(defun show-font--prepare-text ()
"Prepare pangram text at varying font heights."
- (let ((pangram (show-font--get-pangram))
- (faces '(show-font-small show-font-regular show-font-medium
show-font-large))
- (list-of-lines nil)
- (list-of-blocks nil)
- (name (propertize (show-font--get-attribute "fullname") 'face
'show-font-title))
- (family (propertize (show-font--get-attribute "family") 'face
'show-font-subtitle)))
+ (let* ((pangram (show-font--get-pangram))
+ (faces '(show-font-small show-font-regular show-font-medium
show-font-large))
+ (list-of-lines nil)
+ (list-of-blocks nil)
+ (name-string (show-font--get-attribute "fullname"))
+ (family-string (show-font--get-attribute "family"))
+ (name (propertize name-string 'face (list 'show-font-title :family
family-string)))
+ (family (propertize family-string 'face (list 'show-font-subtitle
:family family-string))))
(dolist (face faces)
(push (propertize pangram 'face (list face :family family))
list-of-lines)
(push (propertize show-font-character-sample 'face (list face :family
family)) list-of-blocks))
- [elpa] branch externals/show-font created (now 6e10b12b5d), ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 2f55db5bad 02/54: Fix rendering of title and subtitle in the given font,
ELPA Syncer <=
- [elpa] externals/show-font bd9b392cf8 10/54: Simplify show-font--get-attribute, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font abb3e13345 17/54: Add TODO to refine show-font--get-pangram, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 6f878f50bc 18/54: Simplify the file name handler, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font f8e4484bcd 20/54: Clarity show-font-pangram-p doc string, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font f90e03c5e8 22/54: Refine how the title faces are produced, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font c10b077657 25/54: Add TODO about how best to support multiple languages, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font b572bacf0c 26/54: Make the major mode disable line numbers locally, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 5cf734e21a 35/54: Define a button and use it to help the user install current file, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font c5d7fd6e34 01/54: Add initial version of show-font, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 460da112ed 08/54: Add TODO about other operating systems, ELPA Syncer, 2024/09/10