File Formats

TrueType Font (.tff) — The most popular font format that is widely supported across most systems. So far, the only custom fonts I have installed were .tff format, but there is also OpenType Font (.otf), Web Open Font Format (.woff), PostScript Font (.ps), and Scalable Vector Graphics (.svg).

Download the Font and Unzip

As an example, I will use JetBrains Mono, one of my favorite fonts:

# Make sure to request the most recent version of the font
wget https://download.jetbrains.com/fonts/JetBrainsMono-1.0.3.zip
unzip font_file.zip

To Install the Font

If you want to install the font for all users on the system, move the downloaded file to /usr/share/fonts/truetype/ because JetBrains Mono is a TrueType Font (.tff).

sudo mv ./JetBrainsMono-1.0.3 /usr/share/fonts/truetype/
 
# Alternatively,to install the font only for a specific user
mv ./font-name.tff ~/.local/share/fonts/

After moving the file, you need to update the font cache with the following command:

sudo fc-cache -f -v

After updating the cache, you should now be able to update the font in your system settings or in individual applications that support custom fonts.