fix font fallback

This commit is contained in:
2025-07-07 15:03:09 +02:00
parent 1ac3deddbc
commit d5ed7d10f3
2 changed files with 71 additions and 34 deletions

View File

@@ -51,9 +51,13 @@
;; ╚══╩══╝ └──┴──┘ ╰──┴──╯ ╰──┴──╯ ┗━━┻━━┛ └╌╌┘ ╎ ┗╍╍┛ ┋ ▁▂▃▄▅▆▇█
;; see M-x describe-char
(set-face-font 'default (font-spec :family "FiraCode Nerd Font" :size 13))
(cond
((find-font (font-spec :family "FiraCode Nerd Font"))
(set-face-font 'default (font-spec :family "FiraCode Nerd Font" :size 13)))
((find-font (font-spec :family "DejaVu Sans Mono"))
(set-frame-font (font-spec :family "DejaVu Sans Mono" :size 15))) )
;; (set-fontset-font FONTSET CHARACTERS FONT-SPEC &optional FRAME ADD)
;; (Set-fontset-font FONTSET CHARACTERS FONT-SPEC &optional FRAME ADD)
;; CHARACTERS see `script-representative-chars' and
;; list-character-sets and list-charset-chars for the list of
;; character sets and their characters.