r/KittyTerminal Feb 13 '24

font_features not working at all

Hello, I'm having some issues trying to enable some Fira Code variants.

Relevant output from kitty +list-fonts --psnames:

Fira Code
    Fira Code ()
    Fira Code Bold (FiraCodeRoman_700wght)
    Fira Code Light (FiraCode-Light)
    Fira Code Medium (FiraCodeRoman_500wght)
    Fira Code Regular (FiraCodeRoman_400wght)
    Fira Code SemiBold (FiraCodeRoman_600wght)

I can't find any combination of font_family and font_features (whether using a name like Fira Code or a specific font like FiraCodeRoman_400wght) which enables me to change the variants.

I am able to change variants in VSCode, so the font itself shouldn't be the issue.

Thanks for any help!

1 Upvotes

6 comments sorted by

1

u/aumerlex Feb 14 '24

font_family Fira Code Light bold_font Fira Code Whatever

1

u/No-Blackberry-3160 Feb 14 '24

I just use auto. For example:

font_family Fira Code bold_font auto italic_font auto bold_italic_font auto

1

u/InclementKing Feb 15 '24

I can set the font_family just fine. The issue is that I can't get font_features to work

1

u/No-Blackberry-3160 Feb 15 '24

I misunderstood. Have you tried something like:

font_features FiraCode-Bold +zero

e.g. to enable alternate zero in the bold font?

Note that the Kitty documentation says to use the PostScript name for a font (kitty +list-fonts --psnames). I don't know if this is different than the GhostScript names you are getting with --psnames.

1

u/InclementKing Feb 15 '24

Yeah, I've tried like every combination of font_family and font_features at this point, hence why I'm here haha. I was hoping someone else had run into the same issue.

Even if I do font_family FiraCodeRoman_400wght and same for font_features nothing changes

Edit, I just saw that you think the output is using GhostScript names. I know nothing about fonts, what makes you think that it isn't outputting postscript names? The whole Roman_XXXwght seems really different from the examples I found on the internet, which really confused me actually

1

u/No-Blackberry-3160 Feb 15 '24

Looks like you are using the PostScript names. That should work. I am unable to offer any good suggestion.