Emacs: Protect against missing font.

master
Pierre Neidhardt 2019-10-16 22:25:12 +02:00
parent 5b10b0fa0d
commit ead626b6a7
1 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,9 @@
;;; Font size
(when (fboundp 'tool-bar-mode)
;; (set-face-attribute 'default nil :height 100)
(add-to-list 'default-frame-alist '(font . "DejaVu Sans Mono-12")))
(when (find-font (font-spec :name "DejaVu Sans Mono-12"))
;; Emacs raises an error if font is not found.
(add-to-list 'default-frame-alist '(font . "DejaVu Sans Mono-12"))))
;;; More readable but more space consuming; try on big screens.
;; (setq-default line-spacing 1)