Install TrueType Fonts on Ubuntu
Ubuntu users often need TrueType fonts for Open Office, Gimp, and other programs. Using this guide, you can either install one font at a time automatically or install multiple fonts manually.
Note: If you are using KDE, double-clicking on a font in Dolphin should automatically open the font in K Font View. When you click on the button labeled "Install..." if the font is not already installed, you will receive a prompt asking if you want to install it for personal use or system wide. If you choose system, you will be prompted for your sudo password.
Contents
Steps
Getting Font Viewer Root Privileges to Install a Font
- Open a terminal window
- Type "sudo gnome-font-viewer <path-to-font-file> and hit enter (replace <path-to-font-file> with the path to the font file you want to install!)
- Enter your user password when prompted
- Click "Install". Job done!
Automatically Install a Single Font
- Download a TrueType font. (The file extension will be .ttf.) Unzip your file if necessary.
- Double click on the downloaded file. This should open a font-viewer window.
- Click Install Font in the lower right-hand corner. Congratulations! Your font has been installed.
Manually Install Multiple Fonts
- Download TrueType fonts. (The file extension will be .ttf or .otf) Unzip your files if necessary.
- Move your files to the ~/ Directory. The ~/ Directory is your home folder. This means that if you were logged in as cruddpuppet, the directory would be /home/cruddpuppet/ .
- Go to Applications > Accessories > Terminal. This will take you to the terminal.
- Type “cd /usr/local/share/fonts/truetype” without quotes into the command line. This is a directory for user-added fonts in linux.
- Type “sudo mkdir myfonts” without quotes. This will make a directory called “myfonts” in which to store your fonts. If you’re not logged in as root, you will be prompted to provide your password.
- Type “cd myfonts” without quotes. This moves you into the new directory.
- Type “sudo cp ~/fontname.ttf .” without quotes. This moves the TrueType fonts into your new directory. (Alternatively, type “sudo cp ~/*.ttf .”; the * acts as a wildcard, allowing you to move all your fonts from the ~/ Directory at once.)
- Type “sudo chown root fontname.ttf”(or *.ttf) to change file owner to the root.
- Type “cd ..” and then “fc-cache” without quotes to add newly-added fonts to system-wide font index, so all applications can see them.
Tips
- The following fonts can be installed to Ubuntu: Arial, Courier New, Microsoft Sans Serif, Georgia, Tahoma, Verdana, and Trebuchet MS.
- If you don't have root/sudo privileges on the machine, you can put the TTF files in the ~/.fonts directory instead.
- You can install fonts into Fedora, Red Hat, Debian and many other Linux distributions.
Warnings
- Logging in as root gives you all permissions, putting all your files at risk. It's suggested that you don't do normal work logged in as root.
Related Articles
- Install Fonts on Your PC
- Use Linux
- Install Beagle on Ubuntu
- Burn a CD in Ubuntu Linux