Run after-setting-font-hook after fontset config

Helps #3298
This commit is contained in:
Henrik Lissner 2020-11-19 00:43:50 -05:00
parent 00b370fdc6
commit e1c9145a5d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -590,7 +590,8 @@ behavior). Do not set this directly, this is let-bound in `doom-init-theme-h'.")
(set-face-attribute 'variable-pitch nil :font doom-variable-pitch-font))
(when (fboundp 'set-fontset-font)
(dolist (font (append doom-unicode-extra-fonts (doom-enlist doom-unicode-font)))
(set-fontset-font t 'unicode font nil 'prepend))))
(set-fontset-font t 'unicode font nil 'prepend)))
(run-hooks 'after-setting-font-hook))
((debug error)
(if (string-prefix-p "Font not available: " (error-message-string e))
(lwarn 'doom-ui :warning