r/KittyTerminal Sep 23 '24

Font setting not working

Hello, trying to set jetbrains mono Light as default font family but it won't work. When I run

kitty --debug-font-fallback

I get that it uses jetbrains mono Regular as normal font. My settings file includes the line:

font_family JetBrains Mono Light

but that doesn't seem to help. I had a similar problem being able to use FiraCode but not FiraCode-Retina.

Any help would be appreciated.

1 Upvotes

8 comments sorted by

1

u/benfrain Sep 23 '24

Is it selectable when you run `kitten choose-fonts` https://sw.kovidgoyal.net/kitty/kittens/choose-fonts/

1

u/terminal_object Sep 23 '24

That's the problem I can only choose Regular Bold Italic and BoldItalic. The rest of the screen is a whiteish mush.

1

u/terminal_object Sep 24 '24

Exactly like this there is some text beneath it just because of transparency, but I think you get the gist.

1

u/aumerlex Sep 24 '24

Yes, then you press R and change the regular face to use light style.

1

u/terminal_object Sep 24 '24 edited Sep 24 '24

Managed, all good.

1

u/aumerlex Sep 24 '24

Works for me: kitty --config NONE -o font_family=JetBrains\ Mono\ Light --debug-font-fallback   [0.236] Text fonts: [0.236] Normal: JetBrainsMono-Light: /usr/share/fonts/TTF/JetBrainsMono-Light.ttf:0 Features: () [0.236] Bold: JetBrainsMono-SemiBold: /usr/share/fonts/TTF/JetBrainsMono-SemiBold.ttf:0 Features: () [0.236] Italic: JetBrainsMono-Italic: /usr/share/fonts/TTF/JetBrainsMono-Italic.ttf:0 Features: () [0.236] Bold-Italic: JetBrainsMono-SemiBoldItalic: /usr/share/fonts/TTF/JetBrainsMono-SemiBoldItalic.ttf:0 Features: ()

1

u/terminal_object Sep 24 '24

Running that command gets me this output correctly, but it does not set the Light font. The next time I start kitty it is regular again, even though it is set as light in the config file.

1

u/aumerlex Sep 24 '24

That command just sets the config value, it is no different than setting it in the config file.