Sublime Forum

Font option: gdi and ligatures

#1

Platform Windows

in preferences file

"font_face": "JetBrains Mono",
"font_options":	["gdi"]

image
If “gdi” off, the font ligatures works, but the Chinese characters narrow and shit. The “italic” works, too.

image
“gdi” on, the font ligatures gone, but the Chinese characters fine (but lost skew effect).

Can I keep both good rendering of Chinese and font ligatures.

0 Likes

#2

You can’t mix gdi and coretext rendering and gdi can’t do ligatures. You can probably find a font that renders that way with coretext.

0 Likes

#3

The font “Source Han Sans” from Google and Adobe can display perfect without “gdi”, but the fallback of “JetBrains Mono” can not set to the “Source Han Sans”.

image
image
The Consolas, I can set it fallback to Microsoft Yahei (WIN default Chinese font).

By modify the reg, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink, add a “Consolas” with the follow content:

MSYH.TTC,Microsoft YaHei UI,128,96
MSYH.TTC,Microsoft YaHei UI

But this not works with the “JetBrains Mono”, I do the same thing, add a JetBrains Mono like above, but not works.

In VSCode, the font fallback can set as a CSS font-family, since it’s a browser.

0 Likes