How to install custom fonts in Debian

All operating systems come with a large set of fonts already installed. However, sometimes you may need a new font that is not available in the predefined fonts. In this case, you will need to manually download and install this font on your system.

This article discusses how to download and install a new font on your Debian system. However, try not to install too many fonts, as they can slow down your system.

We will use Debian 10 to run the commands and procedures mentioned in this article.

View installed fonts in Debian

You can view the fonts installed on our system using the LibreOffice Writer application. Open LibreOffice Writer and click the drop-down arrow to view the fonts, as shown in the following screenshot. When a drop-down list appears, you will see a list of fonts that are pre-installed on the system.

You can also view all fonts in the system through Gnome fonts. Press the super-key on your keyboard and find the Gnome fonts using the fonts keyword. When the icon is displayed as follows, click on it to open.

How to install custom fonts in Debian

When Gnome Fonts opens, you will see all the fonts available on your system.

How to install custom fonts in Debian

Installing a new font in Debian

Follow the steps below to install the new font on your system.

Step 1. Download the font file from the Internet.

To download a new font from the Internet, there are two ways that are from a web browser and command line.

1. Using a web browser

Open any web browser on your system and go to any website to download fonts, such as https://www.1001freefonts.com/, Find the font you want by clicking the download button. The downloaded file will be saved as a .zip file in your download directory.

How to install custom fonts in Debian

2. Using the command line terminal

You can also use the Terminal application to download fonts from a website. To open the Terminal application, go to the Actions tab in the upper left corner of the desktop, and then use the search bar to search for a terminal. When the result appears, click on the terminal icon.

When the Terminal opens, enter the following command in it to download the font from www.1001freefonts.com Web site. If you are downloading from another site, replace the link with a link to this site.

$ wget -O ~/Downloads/dephiana.zip https://www.1001freefonts.com/d/25249/dephiana.zip

Once downloaded, it will be saved in your download directory. Then run the following command to unzip the downloaded file.

$ unzip -p ~/Downloads/lemon-brush.zip lemon-brush.ttf > ~/Downloads/lemon-brush.ttf

How to install custom fonts in Debian

Once downloaded, it will be saved in your download directory. Then run the following command to unzip the downloaded file.

$ unzip -p ~/Downloads/lemon-brush.zip lemon-brush.ttf > ~/Downloads/lemon-brush.ttf

How to install custom fonts in Debian

Step 2: Download Font Manager

The next step is to download the font manager. Font Manager provides an easy way to install and manage fonts on your system. You can use the Software Center or the Command Line Terminal to download the font manager.

If you want to use Terminal, use the following command to install the font manager.

$ sudo apt update && sudo apt -y install font-manager

How to install custom fonts in Debian

After installation, you can access the font manager by pressing the super key and searching for the font using the fonts keyword. When the result appears, click the font manager icon to open it.

How to install custom fonts in Debian

Step 3: Install the downloaded font

At this point, we will install the font using the font manager. Click the “+” button in the top panel of the font manager window, as shown in the following screenshot.

How to install custom fonts in Debian

Then add the ZIP file from the Downloads directory. In this case, the selected font will be installed on your system.

How to install custom fonts in Debian

To verify that the new font has been successfully installed on your system, open the Writer LibreOffice application. You will now find the newly installed font in LibreOffice Writer.

How to install custom fonts in Debian

Install fonts for all users in Debian

The above fonts are available only to the user who installed it. To allow the font to be used by all users, run the following command in the terminal:

$ sudo mkdir /usr/local/share/fonts/example

Enter the password for sudo, and then run the following command:

$ sudo cp ~/Downloads/dephiana.ttf /usr/local/share/fonts/example/

How to install custom fonts in Debian

How to install custom fonts in Debian

That’s all there is to it! This was a brief overview of how to download and install any font on your system. I hope this will be useful whenever you need to use any font that is not available on your system.

How to install custom fonts in Debian

Sidebar