summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-09-02 02:39:31 +0100
committerjao <jao@gnu.org>2022-09-02 02:39:31 +0100
commitc1b7415179a0c3bfd4e74f41663d1816b2fd2135 (patch)
tree394963783f46a071f2f98a8e3a34b23a1ee67599
parente731fd6070b63617dfdbf27785443d79704d38f0 (diff)
downloadelibs-c1b7415179a0c3bfd4e74f41663d1816b2fd2135.tar.gz
elibs-c1b7415179a0c3bfd4e74f41663d1816b2fd2135.tar.bz2
set-fontset-font not available in nox
-rw-r--r--init.el27
1 files changed, 14 insertions, 13 deletions
diff --git a/init.el b/init.el
index 0825b01..1ee6ea3 100644
--- a/init.el
+++ b/init.el
@@ -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)