Your operating system and all its applications usually support a set of fonts that you can use as system fonts in various desktop and web applications, respectively. Suppose you want to use the new font in any application that you have seen on the Internet. Unfortunately, this is not as simple as simply selecting the downloaded font and then starting to use it in the application. You must first install this font on your operating system in order to use it.
In this article, we will show you how to add and use a downloaded font on your Ubuntu 18.04 LTS system.
It is important to note that adding too many custom fonts can slow down your system. This is because the operating system must monitor all installed fonts and download them when opening an application that requires the use of fonts. Therefore, it is recommended that you install very few custom fonts and it is preferable to remove the ones you used with. However, you should not delete the font set that comes with your system by default.
View fonts installed on your system
When working on LibreOffice Writer, you can select a font from the drop-down list of fonts. These fonts are part of the fonts installed on your operating systems.
You can see which all fonts are available on your system by opening the Gnome font file through Ubuntu Dash, as follows:
When you open Gnome Fonts, you can see all the fonts available in LibreOffice and all other applications, as follows:
Installing a new font in Ubuntu
Step 1. Download the font file from the Internet.
You can download a font from the Internet in the following two ways:
1. Using a web browser
To download a font from the Internet, you can access a reliable website such as https://www.1001freefonts.com/ and then find the font you want to download. For example, we download the Art Brewery font through this website.
Click the Download button to save the ZIP file for this font.
The zip file will be saved in the Downloads folder.
2. Using the command line application
Open the Ubuntu terminal application using the Dash or Ctrl + Alt + T key combination. Enter the following command:
$ wget -O ~/Downloads/bakery.zip https://www.1001freefonts.com/d/17943/bakery.zip
Then unzip the file using the following command:
$ unzip -p ~/Downloads/bakery.zip bakery.ttf > ~/Downloads/bakery.ttf
Your downloads folder will now contain the bakery.ttf file.
Step 2: Download Font Manager
Font Manager provides a very efficient way to install the downloaded font into your system. Font Manager can be downloaded via Ubuntu software or through the command line by entering the following command in Terminal:
$ sudo apt update && sudo apt -y install font-manager
The font manager will be installed on your system and accessible through Ubuntu Dash.
Step 3. Install the downloaded font
After opening the font manager, you can use the + button in the top panel to add the downloaded font.
Here we add the Bakery font to our system by opening its .zip file from the Downloads folder. After selecting the zip file, the font will be installed on your system.
Please note that only the user who installed the font can use it, since the font set in this way is stored in this user’s directory / local / share / fonts.
This font will now also be visible in the LibreOffice font list.
Install fonts for all users
You can install a font that can be used by all users of the system by entering the following commands in your terminal:
$ sudo mkdir /usr/local/share/fonts/example $ sudo cp ~/Downloads/Bakery.ttf /usr/local/share/fonts/example/
In this article, you learned how to download and install a font that is otherwise not available in your system fonts. You can install it only for yourself or for all users who have access to your system. You can download the font both through a web browser and through the command line, depending on what you prefer. Please remember to remove all unused custom fonts, as they may slow down your system.
How to install custom fonts on an Ubuntu system