Ubuntu users often need TrueType fonts for Open Office, Gimp, and other applications. Using this guide, you can install the font automatically or manually install multiple fonts.
Note: If you are using KDE, double clicking on a font in Dolphin will automatically open it in KFontView. When you click on the "Install …" button, if the font is not installed, you will receive a request in which you will be asked to choose: install the font for personal use or for use in the system. If you choose the second option, you will be prompted for your sudo password.
Steps
Method 1 of 3: Obtaining permission to install fonts in the Font Viewer

Step 1. Open a terminal window

Step 2. Type "sudo gnome-font-viewer" and hit enter (replace with the path to the font file you want to install
)

Step 3. Enter the user password

Step 4. Click Install
Ready!
Method 2 of 3: Installing the font automatically

Step 1. Download the TrueType font
(The file extension is.ttf.) Unzip the file if necessary.

Step 2. Double click on the downloaded file
A font preview window will open.

Step 3. Click on the "Install Font" button in the lower right corner
Congratulations! The font is installed.
Method 3 of 3: Installing multiple fonts manually

Step 1. Download TrueType fonts
(The file extension is.ttf or.otf) Unzip the files if necessary.

Step 2. Move the files to ~ / Directory
~ / Directory is your "home folder". This means that if you are logged in as "cruddpuppet", the "home folder" will be / home / cruddpuppet /.

Step 3. Go to Applications> Accessories> Terminal
You will be taken to a terminal.

Step 4. Type “cd / usr / local / share / fonts / truetype” without quotes at the command line
This is the folder for custom fonts in Linux.

Step 5. Type “sudo mkdir myfonts” without quotes
The folder “myfonts” will appear in which you will save the fonts. If you are not logged in, you will be prompted for a password.

Step 6. Type “cd myfonts” without quotes
You will be moved to this folder.

Step 7. Type “sudo cp ~ / fontname.ttf
”Without quotes. The TrueType fonts are moved to this folder. (Alternatively, type “sudo cp ~ / *. ttf.”; the * symbol allows you to move all fonts from ~ / Directory at once.)

Step 8. Type “sudo chown root fontname.ttf” (or *.ttf) to share the font on the system

Step 9. Type “cd
”And then“fc-cache”without quotes to add new fonts to the system so that they are available to all applications.
Advice
- The following fonts can be installed on Ubuntu: Arial, Courier New, Microsoft Sans Serif, Georgia, Tahoma, Verdana, and Trebuchet MS.
- You can install fonts on Fedora, Red Hat, Debian, and many other Linux distributions.
- If you do not have root / sudo privileges on any computer, you can put TTF files in ~ /.fonts folder.