Install fonts on Linux – Debian, Ubuntu, Kali, Mint – Microsoft TrueType core
Installing fonts is important for those who are multilingual or want to spice up their screen. Many websites uses different fonts and without having to install fonts on Linux, you wont see those, you will see a flat boring default font. I will also show how to reconfigure your fontconfig so that it looks better on your CRT or LCD screen.
This posts shows how you can install fonts and configure them on the following Linux Operating systems:
Debian Linux Ubuntu Linux Linux Mint Kali Linux Any Debian or Ubuntu Variant such as Elementary OS
The basic – Microsoft TrueType core Fonts
This package allows for easy installation of the Microsoft True Type Core Fonts for the Web including:
Andale Mono Arial Black Arial (Bold, Italic, Bold Italic) Comic Sans MS (Bold) Courier New (Bold, Italic, Bold Italic) Georgia (Bold, Italic, Bold Italic) Impact Times New Roman (Bold, Italic, Bold Italic) Trebuchet (Bold, Italic, Bold Italic) Verdana (Bold, Italic, Bold Italic) Webdings
You will need an Internet connection to download these fonts if you don’t already have them.
NOTE: the package ttf-liberation contains free variants of the Times, Arial and Courier fonts. It’s better to use those instead unless you specifically need one of the other fonts from this package.
Install instructions:
First of all let’s check if we even have those fonts in our repositories. I use Kali Linux which is a variant of Debian Linux. If you’re using Kali, you need to add the default official repositories.
Let’s do an apt-cache search:
root@kali:~# apt-cache search ttf-mscorefonts-installer ttf-mscorefonts-installer - Installer for Microsoft TrueType core fonts
apt-cache search fonts - blackMORE Ops
That means we are good to go. If not, follow the link above to add official repositories for Kali Linux (or if you’re using Debian Linux or Ubuntu Linux (or even Linux Mint variants), go and add official repositories for that.)
Now install Microsoft TrueType core using a single command:
root@kali:~# root@kali:~# apt-get install ttf-mscorefonts-installer
(output below) Output - Click to expand
Note: If you’re behind a proxy server or TOR network, this install might not work, it seems you must be directly connected to Internet.
Similar font package you can also install
Here’s a list of other fonts that you can install, follow is a list of package names, that means you can use
apt-get install <package-name>
to install these
ttf-liberation fonts-liberation ttf-uralic fonts-uralic ttf-root-installer ttf-freefont ttf-dustin ttf-linux-libertine fonts-linuxlibertine fonts-dustin ttf-staypuft
For example:
apt-get install ttf-staypuft
install more fonts - Debian Linux or Kali Linux - blackMORE Ops More ways to install fonts
Sometimes you download .ttf file (a font file) and you want to install it directly. In that case, copy the font file to one of the following directory.
The fonts can be copied in one of this directories:
/usr/share/fonts /usr/share/X11/fonts /usr/local/share/fonts ~/.fonts
Here’s how the directories work.
If you want the fonts for everyone on the system (i.e. in a multiuser environment) then put them on /usr/share/fonts.
If you only want the fonts for yourself, then put them on ~.fonts directory of your home folder.
Once you’ve copied the files in correct places, issue the following command to which will read and cache all installed fonts from these directories.
root@kali:~# fc-cache -fv
Output - Click to expand Now if you want to list all installed and cached fonts on your system, you need to use fc-list command.
Sample output below:
root@kali:~# fc-list
Output - Click to expand
ИСТОЧНИКИ: