如何在 SublimeText 中使用自定义字体 [英] How to use a custom font in SublimeText

查看:44
本文介绍了如何在 SublimeText 中使用自定义字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道用户可以通过以下方式更改首选项中的 font_face:

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

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

但是,每次我尝试添加(已安装的)非系统字体,如上面的 Gohufont,它都不起作用.

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

推荐答案

  1. 安装字体的 TTF 版本,尽管 此处 提供了特定于平台的字体..立>
  2. 安装字体,安装是特定于操作系统的过程(在您的情况下,请使用 Windows 字体文件夹中的 Install font 菜单项).
  3. 复制粘贴 "font_face": "GohuFont", 到您的用户首选项文件.
  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.

在 MacOS 上测试过,它适用于您的字体,在 Win 7/8.1 上与其他字体相同.

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

这篇关于如何在 SublimeText 中使用自定义字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆