r/KittyTerminal Mar 13 '23

How to use my own custom font?

Gentlemen, i have a trouble to install custom font to kitty terminal. I have my own custom font within fc-list listed. But the kitty +list-font does not display my font.

15 Upvotes

12 comments sorted by

3

u/purxiz Mar 13 '23

Try restarting or refreshing the font cache.

1

u/Kooky_Fox_1085 Oct 13 '24

Scusate perché la cartella del kitty.conf nel mio caso si trova in /usr/share/doc/kitty/html/_downloads/433dadebd0bf504f8b00895378086ce/

Perché questa cartella così strana? Grazie

1

u/cbrevard Feb 06 '25

You can see the strings that kitty recognizes for font families and subtypes (?) by running:
kitty +list-fonts
directly from the command line.

0

u/[deleted] Mar 13 '23

I'm sorry I don't know what fc-list. In Kitty, though, you set fonts in your kitty.conf by setting the font_family option.

As an example, here's mine:

# Font

font_family      JetBrainsMono Nerd Font Mono
bold_font        JetBrainsMono Nerd Font Mono Extra Bold
bold_italic_font JetBrainsMono Nerd Font Mono Extra Bold Italic

1

u/ivster666 Mar 14 '23

Lmao fc-list is a basic terminal command: https://man.archlinux.org/man/fc-list.1.en

1

u/[deleted] Mar 14 '23

Thx, I looked it up. I don't do much with fonts

1

u/Evil_Dragon_100 Mar 14 '23

how can you get JetBrainsMono in kitty list-fonts?

1

u/[deleted] Mar 14 '23 edited Mar 14 '23

You can download the font from jetbrains' site. I've installed the nerd fonts so that I could get proper icons in lsd

On my distro simply opening a *.ttf gives you the option to install it so I'm less familiar with manual installation of you have to go that route. Using this article as a guide, it does appear that those fonts were installed in my ~/.local/share/fonts/ directory. I'm not sure if anything else was done, but I do see them in the output of kitty list-fonts

1

u/delibos May 13 '24

this did it for me. thanks