cnfonts icon indicating copy to clipboard operation
cnfonts copied to clipboard

可否增加「方正聚珍新仿简」的支持

Open yibie opened this issue 2 years ago • 2 comments

cnfont 似乎是固定了中文字体的选择,可否增加「方正聚珍新仿简」的支持?

或者是如何进行添加?

yibie avatar Aug 23 '22 12:08 yibie

已经解决,通过直接在 cnfont.el 里添加中文字体的名称(注意:不能是直接中文名称,须是 emacs 识别的字体名称,寻找方法是启用 counsel-font,选择好中文字体,即可复制到配置文件里。)

image

现在,我的 org 文件里的「标签」终于对齐。

yibie avatar Aug 23 '22 12:08 yibie

可以用这个变量

(defcustom cnfonts-personal-fontnames nil
  "用户自己维护的字体列表,其结构与 `cnfonts--fontnames-fallback' 一致."
  :group 'cnfonts
  :type '(choice (const :tag "None" nil)
                 (list (repeat :tag "English fonts" string)
                       (repeat :tag "Chinese fonts" string)
                       (repeat :tag "Ext-B fonts" string)
                       (repeat :tag "Symbol fonts" string)
                       (repeat :tag "Fonts used for ornament chars " string))))


tumashu avatar Aug 24 '22 00:08 tumashu