How to enable fake slant feature in kitty? #9700
Replies: 1 comment 2 replies
-
|
I recall kitty supports "font_features" to enable OpenType features, but fake slant is not an OpenType feature; it's a fontconfig transformation. Kitty uses harfbuzz and fontconfig directly? I think kitty respects fontconfig's matrix for slant if you set "italic_font" to the same family and enable "allow_bold"? Actually there is a known issue: kitty does not apply fontconfig's slant transform; you need to use the "italic_font" setting pointing to a font file that has italic glyphs, or use the "allow_bold" for bold. For fake slant, you can use the "italic_font" with same file and set "font_features" maybe? I think you need to set "italic_font" to the same font and then set "allow_bold"? Not sure. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to configure Chinese fonts in kitty. I prefer to use JetBrains Mono in English and Noto Sans CJK SC in Chinese.
To solve the font fallback, I use
It works well in regular and bold fonts. But for CJK fonts, the font files rarely provide italic glyphs directly. Instead, they use
fakeslantfeature. Thus, I use this font config:$ fc-match "Noto Sans CJK SC:slant=italic" matrix :matrix=1 0.2 0 1I am sure that the configuration take effects, but it seems that kitty does not support this feature.
It fallbacks to Noto Sans CJK SC directly. I wonder if there is an approach to achieve my expected effects.
(Well, I know that fake slant is not a good feature in font designing, but it is special and important in CJK fonts.)
Beta Was this translation helpful? Give feedback.
All reactions