summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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)