Fix #1718: void-function set-fontset-font

Occurs when Emacs is built without X server/GUI support.
This commit is contained in:
Henrik Lissner 2019-08-29 18:52:33 -04:00
parent 9bbc77c2c7
commit 3a10e948aa
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -598,7 +598,7 @@ Fonts are specified by `doom-font', `doom-variable-pitch-font',
(set-face-attribute 'fixed-pitch-serif t :font doom-serif-font)) (set-face-attribute 'fixed-pitch-serif t :font doom-serif-font))
(when doom-variable-pitch-font (when doom-variable-pitch-font
(set-face-attribute 'variable-pitch t :font doom-variable-pitch-font)) (set-face-attribute 'variable-pitch t :font doom-variable-pitch-font))
(when doom-unicode-font (when (and doom-unicode-font (fboundp 'set-fontset-font))
(set-fontset-font t 'unicode doom-unicode-font nil 'prepend))) (set-fontset-font t 'unicode doom-unicode-font nil 'prepend)))
((debug error) ((debug error)
(if (string-prefix-p "Font not available: " (error-message-string e)) (if (string-prefix-p "Font not available: " (error-message-string e))