I really like the Hack font – it’s used in my terminal apps on MacOS, Linux and even Windows workstations. This short post demonstrates how to install Hack font, but you can use the steps to configure any other TrueType Font (TTF) on your system.
Step 1: Download the TTF font files
In my case, I downloaded the Hack v3 ZIP archive.
Naturally, you need to unpack it:
Step 2: Copy TTF files into local fonts directory
First you’re going to have to create it in your own homedir:
Now let’s copy the font files into that local fonts directory:
Step 3: Refresh fonts cache with fc-cache command
Just run the fc-cache command like this:
This command will show a list of fonts locations that it inspects and caches for system use. Among the lines of output you can see my home directory:
Step 4: Review available fonts
This should now report that your graphics system (X11/Xorg) has access, the list will include the newly installed fonts Hack:
That’s it! Since I wanted this Hack font specifically for terminal use, I went and updated my default profile in GNOME Terminal app: