Merge pull request #861 from patrl/unicodeFix

Unicode fallback
This commit is contained in:
Henrik Lissner 2018-09-03 23:57:28 +02:00 committed by GitHub
commit 0d57ed3bbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -346,8 +346,7 @@ frame's window-system, the theme will be reloaded.")
`(variable-pitch ((t (:font ,(font-xlfd-name doom-variable-pitch-font)))))) `(variable-pitch ((t (:font ,(font-xlfd-name doom-variable-pitch-font))))))
;; Fallback to `doom-unicode-font' for Unicode characters ;; Fallback to `doom-unicode-font' for Unicode characters
(when (fontp doom-unicode-font) (when (fontp doom-unicode-font)
(setq use-default-font-for-symbols nil) (set-fontset-font t 'unicode doom-unicode-font nil 'append)
(set-fontset-font t 'unicode doom-unicode-font nil)
nil)) nil))
((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))