Skip to content

Commit

Permalink
Update font settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed Sep 3, 2023
1 parent 53ca3c4 commit 3e95cbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom-example.el
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@
(set-fontset-font t 'emoji (font-spec :family font) nil 'prepend))))

;; Specify font for Chinese characters
(cl-loop for font in '("WenQuanYi Micro Hei" "PingFang SC" "Microsoft Yahei" "STFangsong")
(cl-loop for font in '("LXGW WenKai Screen" "WenQuanYi Micro Hei Mono" "PingFang SC" "Microsoft Yahei UI" "Simhei")
when (font-installed-p font)
return (progn
(setq face-font-rescale-alist `((,font . 1.3)))
(set-fontset-font t '(#x4e00 . #x9fff) (font-spec :family font))))))
(set-fontset-font t 'han (font-spec :family font))))))

(centaur-setup-fonts)
(add-hook 'window-setup-hook #'centaur-setup-fonts)
Expand Down

0 comments on commit 3e95cbb

Please sign in to comment.