[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/show-font c41443f03a 03/54: Tweak how the font is prope
From: |
ELPA Syncer |
Subject: |
[elpa] externals/show-font c41443f03a 03/54: Tweak how the font is propertized |
Date: |
Tue, 10 Sep 2024 03:58:56 -0400 (EDT) |
branch: externals/show-font
commit c41443f03a85bb1f1217109daa88f9edda8d919a
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Tweak how the font is propertized
---
show-font.el | 24 +++++++++++-------------
1 file changed, 11 insertions(+), 13 deletions(-)
diff --git a/show-font.el b/show-font.el
index 1e2161807d..a19dcf5dbd 100644
--- a/show-font.el
+++ b/show-font.el
@@ -181,23 +181,21 @@ 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-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))))
+ (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 (show-font--get-attribute "fullname"))
+ (family (show-font--get-attribute "family")))
(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))
(concat
- name "\n"
- (make-string (length name) ?-) "\n"
- "Rendered with parent family:" "\n"
- family "\n"
- (make-string (length family) ?=) "\n\n"
+ (propertize name 'face (list 'show-font-title :family family)) "\n"
+ (propertize (make-string (length name) ?-) 'face (list 'show-font-title
:family family)) "\n"
+ (propertize "Rendered with parent family:" 'face (list 'show-font-regular
:family family)) "\n"
+ (propertize family 'face (list 'show-font-subtitle :family family)) "\n"
+ (propertize (make-string (length family) ?=) 'face (list
'show-font-subtitle :family family)) "\n\n"
(mapconcat #'identity (nreverse list-of-lines) "\n") "\n"
(mapconcat #'identity (nreverse list-of-blocks) "\n") "\n")))
- [elpa] externals/show-font 1ab166f5df 14/54: Remove done to-do items, (continued)
- [elpa] externals/show-font 1ab166f5df 14/54: Remove done to-do items, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 791416d748 16/54: Rework how we expand the pangrams for the defcustom :type, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font d3a51209eb 09/54: Use setq-local consistency in the major mode definition, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 97b3301dd3 12/54: Add error checking in show-font--prepare-text, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 9a40c37d54 04/54: Add link to demo in the README, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font b951202b9b 29/54: Define commands to (i) preview an installed font (ii) list+preview all installed fonts, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 36d3197e13 43/54: Autoload `show-font-handler`, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font a38c7ba286 53/54: Fix a couple of typos, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 0d5978f07b 52/54: Add link with sample pictures, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font da30bb5554 06/54: Add FIXME for how the file handler is added (also see commit a1ffe8a), ELPA Syncer, 2024/09/10
- [elpa] externals/show-font c41443f03a 03/54: Tweak how the font is propertized,
ELPA Syncer <=
- [elpa] externals/show-font 6ca36f382e 23/54: Add some outline headings, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font b1bf2837f9 36/54: Rename helper function that check FILE font attributes, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 8ed7c66c63 44/54: Merge pull request #3 from swapnilsm/main, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font e8bb71badc 45/54: Add .elpaignore file for GNU ELPA, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 7dd09cd87e 48/54: Update the package Commentary, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 7d1cf73686 50/54: Update to show-font version 0.1.0, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 29c8fef4c6 33/54: Define functions to install a font file, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 69e2db52e5 34/54: Make show-font-install non-interactive, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 66bb076f77 47/54: Update the README.md and include links to the manual and changelog, ELPA Syncer, 2024/09/10
- [elpa] externals/show-font 6e10b12b5d 54/54: Fix a couple of typos, ELPA Syncer, 2024/09/10