How to use a custom font in SublimeText

跟風遠走 提交于 2020-01-11 08:43:07

问题


I know a user can change the font_face in preferences with:

"font_face": "gohufont-11",
"font_size": 11,

But, every-time I try to add a (already installed) non-system font, like Gohufont above, it does not work.


回答1:


  1. Install the TTF version of the font despite the platform-specific fonts available from here.
  2. Install the font, installation is OS specific process (in your case use Install font menu entry from windows fonts folder).
  3. Copy paste "font_face": "GohuFont", to your user preferences file.

Tested it on MacOS and it works with your font, did the same with other fonts on Win 7/8.1.




回答2:


Use the font name as the value of font_face. If the font name is GohuFont, use that.



来源:https://stackoverflow.com/questions/20939302/how-to-use-a-custom-font-in-sublimetext

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!