Emacs 27.1,windows11
设置字体的方式是使用菜单中的Options–>Set Default Font的方法,问题是,设置成 文泉驿等宽正黑 这个字体是一切正常的,但如果设置成 霞鹜文楷等宽 Gitee 极速下载/lxgw-wenkai - 码云 - 开源中国 - https://gitee.com/ 显示就不正常,情况如下图
部分字正常,部分字不正常,这是什么原因?
Emacs 27.1,windows11
设置字体的方式是使用菜单中的Options–>Set Default Font的方法,问题是,设置成 文泉驿等宽正黑 这个字体是一切正常的,但如果设置成 霞鹜文楷等宽 Gitee 极速下载/lxgw-wenkai - 码云 - 开源中国 - https://gitee.com/ 显示就不正常,情况如下图
部分字正常,部分字不正常,这是什么原因?
(when (display-graphic-p)
;; Set default font
(set-face-attribute 'default
nil
:font "CaskaydiaCove Nerd Font Mono"
:height 150)
;; Fixed-pitch (monospaced) fonts 等宽字体
(set-face-attribute 'fixed-pitch
nil
:font "CaskaydiaCove Nerd Font Mono"
:height 150)
;; CJK fonts
(set-fontset-font t 'han (font-spec :family "Noto Serif CJK SC" :weight 'semi-bold :slant 'normal))
(set-fontset-font t 'kana (font-spec :family "Noto Serif CJK JP" :weight 'semi-bold :slant 'normal))
;; Emoji
(set-fontset-font t 'symbol (font-spec :family "Noto Color Emoji") nil 'prepend))
感谢回复,学习了。
此话题已在最后回复的 730 天后被自动关闭。不再允许新回复。