Fonts in X11

I like trying out new fonts, and if like one, I want to use it in all my machines, so I keep the .fonts directory saved in a private git repository so it's sync'd across all of them.

Switching fonts in i3 and kitty are a bit of pain because it's a simple text configuration, meaning that I have to actually write the font name, it also sometimes causes issues with typos, me not updating the font cache, etc...

So here is my quick documentation on how to deal with fonts in X11

Refresh fonts cache

This will refresh the fonts on every font folder in the system (I really just care about the $HOME/.fonts one tho.

$ fc-cache -vf

What's the name of the font?

This prints out the list of all font name, puts it in less so you can easily search through.

$ fc-list | sort | less


My new terminal, kitty has a nice way of helping you configure the fonts you use. Not only does it have great documentation on how to configure it, but it also has a command to let you know which fonts are available and what their names are.

$ kitty list-fonts

results matching ""

    No results matching ""