diff options
author | jao <jao@gnu.org> | 2022-09-02 02:39:31 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-09-02 02:39:31 +0100 |
commit | c1b7415179a0c3bfd4e74f41663d1816b2fd2135 (patch) | |
tree | 394963783f46a071f2f98a8e3a34b23a1ee67599 | |
parent | e731fd6070b63617dfdbf27785443d79704d38f0 (diff) | |
download | elibs-c1b7415179a0c3bfd4e74f41663d1816b2fd2135.tar.gz elibs-c1b7415179a0c3bfd4e74f41663d1816b2fd2135.tar.bz2 |
set-fontset-font not available in nox
-rw-r--r-- | init.el | 27 |
1 files changed, 14 insertions, 13 deletions
@@ -301,19 +301,20 @@ ;;;; fontsets (defun jao--set-fontsets (_f) - (set-fontset-font t 64257 "Quivira" nil) - (set-fontset-font t 'egyptian "Noto Sans Egyptian Hieroglyphs" nil) - (set-fontset-font t 'hangul "NanumGothicCoding" nil) - (set-fontset-font t 'unicode (face-attribute 'default :family) nil) - (set-fontset-font t 'unicode-bmp (face-attribute 'default :family) nil) - (set-fontset-font t 'symbol "Symbola-10" nil) - (set-fontset-font t 'greek "GFS Didot" nil) - (set-fontset-font t 'mathematical "FreeSerif" nil) - (set-fontset-font t 'emoji "Noto Color Emoji" nil) - ;; boxes - (set-fontset-font t '(9472 . 9599) "Source Code Pro" nil) - ;; variation selector-16 - (set-fontset-font t 65039 "BabelStone Modern-1" nil)) + (when (display-graphic-p) + (set-fontset-font t 64257 "Quivira" nil) + (set-fontset-font t 'egyptian "Noto Sans Egyptian Hieroglyphs" nil) + (set-fontset-font t 'hangul "NanumGothicCoding" nil) + (set-fontset-font t 'unicode (face-attribute 'default :family) nil) + (set-fontset-font t 'unicode-bmp (face-attribute 'default :family) nil) + (set-fontset-font t 'symbol "Symbola-10" nil) + (set-fontset-font t 'greek "GFS Didot" nil) + (set-fontset-font t 'mathematical "FreeSerif" nil) + (set-fontset-font t 'emoji "Noto Color Emoji" nil) + ;; boxes + (set-fontset-font t '(9472 . 9599) "Source Code Pro" nil) + ;; variation selector-16 + (set-fontset-font t 65039 "BabelStone Modern-1" nil))) (jao--set-fontsets nil) (add-to-list 'after-make-frame-functions 'jao--set-fontsets) |