3 Ways to Install TrueType Fonts on Ubuntu

Table of contents:

3 Ways to Install TrueType Fonts on Ubuntu
3 Ways to Install TrueType Fonts on Ubuntu
Anonim

Ubuntu users often need TrueType fonts for Open Office, Gimp, or other programs. With this guide you can learn how to install a single font (automatically) or more than one font (manually).

Note: If you use KDE you can double click on a font icon in Dolphin to automatically open it with KFontView. By clicking on the "Install" button, the application will ask you if you want to install the font for personal use or if you want to make it available throughout the system. If you choose the latter option, you will be prompted for your sudo password.

Steps

Method 1 of 3: Use Root Privileges to Install a Font with 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 file path of the font you want to install)

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

Step 3. Enter your user's password when prompted

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

Step 4. Click on "Install"

All done!

Method 2 of 3: Install a Single Font Automatically

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

Step 1. Download a TrueType font (extension is.ttf)

If the character is inside a.zip archive, it must be extracted before proceeding further.

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

Step 2. Double click on the downloaded file

The Font Viewer window should appear.

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

Step 3. Click on the Install Font button located in the lower right corner

Congratulations! Your font has been installed.

Method 3 of 3: Install Two or More Fonts Manually

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

Step 1. Download TrueType fonts (extension is.ttf)

If the characters are in a.zip archive, they must be extracted before proceeding further.

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

Step 2. Move the files to the ~ /

~ / is your user's folder. This means that if you are logged in as cruddpuppet the folder ~ / corresponds to / home / cruddpuppet /.

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

Step 3. Go to Applications> Accessories> Terminal

This will run a new instance of the 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 the quotes)

This is the folder that Linux uses for user-installed fonts.

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

Step 5. Type "sudo mkdir myfonts" (without quotes)

This will create a folder called "myfonts" in which you can copy the fonts you have downloaded. If you are not logged in as root you will be prompted for the password.

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

Step 6. Type "cd myfonts" (without quotes)

This command is used to move to the newly created directory.

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

Step 7. Type "sudo cp ~ / fontname.ttf

"(without quotation marks). By doing so the Truetype character named fontname.ttf will be copied into the folder just created. Alternatively you can use the command" sudo cp ~ / *. ttf. ": in this case the * symbol is used to copy all the characters found in the ~ / folder in one go.

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

Step 8. Type "sudo chown root fontname.ttf" (or "sudo chown root *.ttf") to change the owner of the files

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 the characters to the system index so that all applications can use them.

Advice

  • Examples of fonts that can be installed on Ubuntu are: Arial, Courier New, Microsoft Sans Serif, Georgia, Tahoma, Verdana and Trebuchet MS.
  • Fonts can also be installed on Fedora, Red Hat, Debian and many other Linux distributions.
  • If you don't have root privileges on your computer you can put the TTF files in the ~ /.fonts folder.

Recommended: