Home How to install fonts on linux
Post
Cancel

How to install fonts on linux

1 - First download your font

For this tutorial I’m gonna use Hack Nerd Font, you can get it here: Nerd Fonts download

2 - Create .fonts directory

1
mkdir ~/.fonts

3 - Copy your fonts to .fonts directory

1
cp ~/Downloads/Hack.zip ~/.fonts/

4 - Unzip your fonts

1
unzip ~/.fonts/Hack.zip -d ~/.fonts/

5 - Delete unused files

1
2
3
rm -rf ~/.fonts/Hack.zip
rm -rf ~/.fonts/*.md
rm -rf ~/Downloads/Hack.zip

6 - Refresh fonts cache

1
fc-cache -fv

7 - Now you can set your font in whatever part of your system

This post is licensed under CC BY 4.0 by the author.