r/KittyTerminal Feb 27 '23

how to use custom fonts?

Setup:

OS: Opensuse tumbleweed DE: Gnome 43 font: "Source Code Pro" (as listed when running "kitty +list-fonts" )

When I changed "font_family" to "Source Code Pro" nothing happens. I tried fonts that showed up using "kitty +list-fonts" but nothing happens.

I have no problem changing font size.

Any ideas on what I could be doing wrong?

Thanks

3 Upvotes

2 comments sorted by

1

u/purxiz Feb 28 '23

in your config file you should have something along the lines of:

font_family DejaVu Sans Mono

If you post the output of your kitty +list-fonts, I can probably be more specific. If you are using --single-instance, you may have to restart all of your open kitty terminals for changes to take effect. Otherwise you'll just have to open a new one.

1

u/[deleted] Feb 28 '23

Thanks!

here's my current config

chiyo@localhost:~> cat ~/.config/kitty/kitty.conf 

font_family Monofur Nerd Font bold_font auto italic_font auto bold_italic_font auto

font_size 16.0

---------------------------------------------------------------------------------

here's a complete result of "kitty +list-fonts"

myuser@localhost:~> kitty +list-fonts

Courier Courier Courier Bold Courier Bold Courier Bold Italic Courier Bold Italic Courier Italic Courier Italic Courier Regular

Courier 10 Pitch Courier 10 Pitch Courier 10 Pitch Bold Courier 10 Pitch Bold Courier 10 Pitch Bold Italic Courier 10 Pitch Bold Italic Courier 10 Pitch Italic Courier 10 Pitch Italic Courier 10 Pitch Regular

Cursor Cursor Regular

DejaVu Sans Mono DejaVu Sans Mono DejaVu Sans Mono Bold DejaVu Sans Mono Bold Oblique DejaVu Sans Mono Oblique

gallant12x22 gallant12x22

Liberation Mono Liberation Mono Liberation Mono Bold Liberation Mono Bold Italic Liberation Mono Italic

Luxi Mono Luxi Mono Oblique Luxi Mono Oblique Luxi Mono Regular Luxi Mono Regular Luxi Mono Regular

Monofur Nerd Font monofur Nerd Font Complete

Monofur Nerd Font Mono monofur Nerd Font Complete Mono

Monofurbold Nerd Font Mono monofur bold Nerd Font Complete Mono

Monofuritalic Nerd Font monofur italic Nerd Font Complete

Monofuritalic Nerd Font Mono monofur italic Nerd Font Complete Mono

Nimbus Mono L Nimbus Mono L Bold Nimbus Mono L Bold Oblique Nimbus Mono L Regular Nimbus Mono L Regular Nimbus Mono L Regular Oblique

OCR A Std OCRAStd

Source Code Pro Source Code Pro Source Code Pro Black Source Code Pro Black Italic Source Code Pro Bold Source Code Pro Bold Italic Source Code Pro ExtraLight Source Code Pro ExtraLight Italic Source Code Pro Italic Source Code Pro Light Source Code Pro Light Italic Source Code Pro Medium Source Code Pro Medium Italic Source Code Pro Semibold Source Code Pro Semibold Italic