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
Step 1. Open a terminal window
Step 2. Type "sudo gnome-font-viewer" and hit enter (replace with the file path of the font you want to install)
Step 3. Enter your user's password when prompted
Step 4. Click on "Install"
All done!
Method 2 of 3: Install a Single Font Automatically
Step 1. Download a TrueType font (extension is.ttf)
If the character is inside a.zip archive, it must be extracted before proceeding further.
Step 2. Double click on the downloaded file
The Font Viewer window should appear.
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
Step 1. Download TrueType fonts (extension is.ttf)
If the characters are in a.zip archive, they must be extracted before proceeding further.
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 /.
Step 3. Go to Applications> Accessories> Terminal
This will run a new instance of the terminal.
Step 4. Type "cd / usr / local / share / fonts / truetype" (without the quotes)
This is the folder that Linux uses for user-installed fonts.
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.
Step 6. Type "cd myfonts" (without quotes)
This command is used to move to the newly created directory.
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.
Step 8. Type "sudo chown root fontname.ttf" (or "sudo chown root *.ttf") to change the owner of the files
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.