How to install True Type fonts in Ubuntu

Table of contents:

How to install True Type fonts in Ubuntu
How to install True Type fonts in Ubuntu
Anonim

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

Install TrueType Fonts on Ubuntu Step 1
Install TrueType Fonts on Ubuntu Step 1

Step 1. Open a terminal window

Install TrueType Fonts on Ubuntu Step 2
Install TrueType Fonts on Ubuntu Step 2

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

)

Install TrueType Fonts on Ubuntu Step 3
Install TrueType Fonts on Ubuntu Step 3

Step 3. Enter the user password

Install TrueType Fonts on Ubuntu Step 4
Install TrueType Fonts on Ubuntu Step 4

Step 4. Click Install

Ready!

Method 2 of 3: Installing the font automatically

Install TrueType Fonts on Ubuntu Step 5
Install TrueType Fonts on Ubuntu Step 5

Step 1. Download the TrueType font

(The file extension is.ttf.) Unzip the file if necessary.

Install TrueType Fonts on Ubuntu Step 6
Install TrueType Fonts on Ubuntu Step 6

Step 2. Double click on the downloaded file

A font preview window will open.

Install TrueType Fonts on Ubuntu Step 7
Install TrueType Fonts on Ubuntu Step 7

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

Install TrueType Fonts on Ubuntu Step 8
Install TrueType Fonts on Ubuntu Step 8

Step 1. Download TrueType fonts

(The file extension is.ttf or.otf) Unzip the files if necessary.

Install TrueType Fonts on Ubuntu Step 9
Install TrueType Fonts on Ubuntu Step 9

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 /.

Install TrueType Fonts on Ubuntu Step 10
Install TrueType Fonts on Ubuntu Step 10

Step 3. Go to Applications> Accessories> Terminal

You will be taken to a terminal.

Install TrueType Fonts on Ubuntu Step 11
Install TrueType Fonts on Ubuntu Step 11

Step 4. Type “cd / usr / local / share / fonts / truetype” without quotes at the command line

This is the folder for custom fonts in Linux.

Install TrueType Fonts on Ubuntu Step 12
Install TrueType Fonts on Ubuntu Step 12

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.

Install TrueType Fonts on Ubuntu Step 13
Install TrueType Fonts on Ubuntu Step 13

Step 6. Type “cd myfonts” without quotes

You will be moved to this folder.

Install TrueType Fonts on Ubuntu Step 14
Install TrueType Fonts on Ubuntu Step 14

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.)

Install TrueType Fonts on Ubuntu Step 15
Install TrueType Fonts on Ubuntu Step 15

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

Install TrueType Fonts on Ubuntu Step 16
Install TrueType Fonts on Ubuntu Step 16

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.

Popular by topic