How to install fonts in Ubuntu

July 23rd, 2007
There are several ways to install new fonts in your Ubuntu system. However, the one I describe here is from the command line, which is the one that worked for me.

Open a terminal and run a shell as root. Then go to /usr/share/fonts/truetype which is where all your true-type fonts are installed. Create a new directory in there and put all the fonts you want to install in it. Then refresh the font cache (by issuing the fc-cache command):

$ sudo bash
Password:
# cd /usr/share/fonts/truetype
# mkdir myFonts
# cp /path/to/fonts/* myFonts
# exit
$ fc-cache -f -v
...
fc-cache: succeeded
$


This will make your fonts available system-wide, thus it requires root privileges. If you do not have system administrator's privileges, or you simply want to make the fonts available only to you, you can put your fonts in your $HOME/.fonts directory (you have to create it if it does not exist):

$ mkdir $HOME/.fonts
$ cp /path/to/fonts/* $HOME/.fonts
$ fc-cache -f -v
...
fc-cache: succeeded
$


Note that you do not have to have root privileges to run the fc-cache command.

One Response to “How to install fonts in Ubuntu”

  1. Mark Papadakis Says:
    Super useful, just like all your posts, bar none. Your blog is an excellent source for well explained subjects, simple to understand guides+howtos. Keep the posts coming affy:)

Leave a Reply