about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/lisp/init-ui.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/.emacs.d/lisp/init-ui.el b/.emacs.d/lisp/init-ui.el
index 1e3c8fb..e0c0908 100644
--- a/.emacs.d/lisp/init-ui.el
+++ b/.emacs.d/lisp/init-ui.el
@@ -6,7 +6,11 @@
 
 (use-package emacs
   :config
-  (set-face-attribute 'default nil :font "iosevka comfy")
+  (cond
+   ((find-font (font-spec :name "iosevka comfy"))
+    (set-face-attribute 'default nil :font "iosevka comfy"))
+   ((find-font (font-spec :name "iosevka"))
+    (set-face-attribute 'default nil :font "iosevka")))
 
   ;; https://github.com/rougier/elegant-emacs/blob/master/sanity.el
   (setq inhibit-startup-screen t