Are the preinstalled fonts on your Linux distribution missing that certain flair? You can easily customize your desktop’s typography by adding and configuring fonts, including those owned by Microsoft and Google.
To add one of Google’s open-source fonts, you have two options: downloading directly from the Google Fonts website, or using a graphical installer called TypeCatcher. The website method is more straightforward and reliable but involves a little bit of command line work. You might feel more comfortable with TypeCatcher, but depending on your distribution, it may not be easy to install.
Pasi de urmat
Option 1: Google Fonts Website
First, head over to the Google Fonts site and select the font family you want to install. Download the font archive by clicking the “Download Family” button located in the top-right corner.
Launch the terminal and create a new directory to store the downloaded fonts. Then, navigate to the newly-created folder using the cd command.
sudo mkdir /usr/share/fonts/googlefonts && cd /usr/share/fonts/googlefonts
Unzip the archive to the newly-created folder using the unzip command. Make sure to replace
FontArchive.zip in the command below with the name of the archive you just downloaded.
sudo unzip -d . ~/Downloads/FontArchive.zip
Register the fonts on your system with the
sudo fc-cache -fv
Then, verify if the new font was successfully added by running:
Don’t forget to replace
FontName with the name of the font that you added. For example, if you downloaded the Loto Sans font, the aforementioned command will become
If the output displays the name of the font—Loto Sans, for example—then the font was successfully added to the system. In case the font name in the output is different, consider going through the installation steps again.
If working with the command line isn’t your strong suit, you can install Google fonts using TypeCatcher, a graphical application that allows users to search, install, and uninstall Google fonts on Linux.
TypeCatcher is available in the Debian repositories and can be downloaded using APT.
sudo apt install typecatcher
Arch users can install TypeCatcher from the AUR using an AUR helper like yay.
yay -S typecatcher
How to Install Microsoft Fonts on Linux
Unlike Google fonts, there’s no central repository for downloading Microsoft fonts for Linux. Therefore, you’ll have to either install the fonts using a Microsoft fonts package or extract them from an active Windows installation or the ISO image.
You can install the ttf-mscorefonts-installer package on Debian-based distros like Ubuntu and Linux Mint to install Microsoft fonts on your system.
sudo apt install ttf-mscorefonts-installer
The aforementioned package provides several Microsoft fonts, including, but not limited to:
- Times New Roman
- Arial Black
- Comic Sans MS
- Courier New
On Arch Linux, you’ll have to download multiple packages from the AUR, each providing a distinct set of Microsoft fonts.
sudo yay -S ttf-ms-fonts ttf-vista-fonts ttf-office-2007-fonts ttf-win7-fonts ttf-ms-win8 ttf-ms-win10 ttf-ms-win11
To install Microsoft fonts on Fedora, CentOS, and other RHEL-based distros, you’ll have to download the mscorefonts2 RPM package. But first, install the necessary support packages needed for the installation.
sudo dnf install curl cabextract xorg-x11-font-utils fontconfig
Finally, download and install mscorefonts2 using the
rpm command as follows:
sudo rpm -i https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm
After installing the aforementioned packages, there’s nothing else that you need to do. The system will automatically add the fonts to your system during the installation process.
To verify if the Microsoft fonts were added to your system, run the following command:
The output should return the name of the font.
If you have a Windows ISO lying around on your computer, you can extract the fonts directly from the installation image. Don’t have the ISO? You can download one for free from the Microsoft website.
With the ISO in hand, you’ll need
p7zip to extract the fonts. Install
p7zip on your system by issuing the commands below depending on the distribution you’re using, or find it in your distribution’s software center.
On Ubuntu and Debian-based distros: