vscode:使用带有 Fira 代码的字体连字更新样式集
vscode: update to stylistic sets using font ligatures with Fira Code
见October, 2019 Release Notes - stylistic sets。
Font feature settings
There is now more fine grained control over the font features. When
configuring "editor.fontLigatures": true
, VS Code would turn on
liga
and calt
. But some fonts have more settings, such as
stylistic sets used by Fira Code.
We now allow these font features to be explicitly controlled, for
example:
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"[javascript]": {
"editor.fontLigatures": "'ss02', 'ss19'",
},
这就是文体集的作用。 (参见 https://github.com/tonsky/FiraCode#stylistic-sets。)
.
我已经在使用 Fira Code,所以我想我可以下载该字体的版本 2 并将以下行添加到编辑器设置中。
"editor.fontFamily": "Fira Code",
"editor.fontLigatures":"'zero', 'ss02', 'ss03', 'ss04', 'ss05', 'calt'",
我得到了奇怪的结果:zero 样式可以工作,但以前工作的连字停止工作;其他套装根本不起作用。
如何获得在 Visual Studio Code 中工作的 Fira Code 版本 2 样式集?
我注意到,如果我禁用此设置,文体集会更好地工作,但并不完美:
"editor.letterSpacing": 0.2,
我向 vscode、https://github.com/microsoft/vscode/issues/84018 提交了一个问题,我了解到您应该将 calt
集添加到您的连字设置 ala
"editor.fontLigatures":"'zero', 'ss02', 'ss03', 'ss04', 'ss05', 'calt'",
感谢 alexandrudima。
然后我注意到很多人遇到了类似的问题,https://github.com/microsoft/vscode/issues/84917
使文体集发挥作用的两个要点:
在您的OS字体管理器中,卸载旧版本 Fira Code(如果您之前使用过),然后安装 Fira Code v2 . 重新启动 OS 和 vscode 之后可能是必要的。
您几乎肯定需要 将 calt
添加到列表中 您希望使用的任何新集都只是为了让其他集工作。
见October, 2019 Release Notes - stylistic sets。
Font feature settings
There is now more fine grained control over the font features. When configuring
"editor.fontLigatures": true
, VS Code would turn onliga
andcalt
. But some fonts have more settings, such as stylistic sets used by Fira Code.We now allow these font features to be explicitly controlled, for example:
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"[javascript]": { "editor.fontLigatures": "'ss02', 'ss19'", },
这就是文体集的作用。 (参见 https://github.com/tonsky/FiraCode#stylistic-sets。)
我已经在使用 Fira Code,所以我想我可以下载该字体的版本 2 并将以下行添加到编辑器设置中。
"editor.fontFamily": "Fira Code",
"editor.fontLigatures":"'zero', 'ss02', 'ss03', 'ss04', 'ss05', 'calt'",
我得到了奇怪的结果:zero 样式可以工作,但以前工作的连字停止工作;其他套装根本不起作用。
如何获得在 Visual Studio Code 中工作的 Fira Code 版本 2 样式集?
我注意到,如果我禁用此设置,文体集会更好地工作,但并不完美:
"editor.letterSpacing": 0.2,
我向 vscode、https://github.com/microsoft/vscode/issues/84018 提交了一个问题,我了解到您应该将 calt
集添加到您的连字设置 ala
"editor.fontLigatures":"'zero', 'ss02', 'ss03', 'ss04', 'ss05', 'calt'",
感谢 alexandrudima。
然后我注意到很多人遇到了类似的问题,https://github.com/microsoft/vscode/issues/84917
使文体集发挥作用的两个要点:
在您的OS字体管理器中,卸载旧版本 Fira Code(如果您之前使用过),然后安装 Fira Code v2 . 重新启动 OS 和 vscode 之后可能是必要的。
您几乎肯定需要 将
calt
添加到列表中 您希望使用的任何新集都只是为了让其他集工作。