emacs: add mode-line family for non-freetype systems

master
Alison G. Watson 2020-06-05 14:38:20 -06:00
parent 4e636b399d
commit bf47f664cc
2 changed files with 9 additions and 7 deletions

View File

@ -36,12 +36,14 @@
(copy-face 'default 'fixed-pitch)
(copy-face 'default 'mode-line)
;; fontset usage
(dolist (range '((#x2310 . #x26bf)
(#x26c0 . #x329f)
(#x1f000 . #x1fa9f)))
(set-fontset-font t range "Noto Color Emoji"))
(setq agw-mode-line-family
(if (string-equal system-type "windows-nt")
"Noto Mono"
"tewi2a"))
(set-fontset-font t '(#x2e80 . #x9fff) "Noto Sans CJK JP")
;; font alternatives
(setq face-font-family-alternatives
'(("Courier Prime Code" "Noto Mono")
("Source Sans Pro" "Noto Sans" "Noto Sans CJK JP" "Noto Color Emoji")))
;; EOF

View File

@ -86,7 +86,7 @@
header-line
header-line-highlight))
(set-face-attribute face nil
:family "tewi2a"
:family agw-mode-line-family
:height 90
:weight 'normal
:width 'normal))