Skip to: site menu | section menu | main content

Add TTF fonts to Ubuntu Linux

Many websites and documents specify MS True-type fonts. You can install the base fonts quite easily on Ubuntu with

sudo apt-get install msttcorefonts

If you need to install a specific font on your Ubuntu machine, this is how you do it...

These steps come from an excellent overview of typical configuration steps from Markus Amersdorfer. In a terminal, run the following commands:

cd /usr/share/fonts/truetype
sudo mkdir myfonts
cd myfonts
sudo cp ~/*.ttf .
sudo chown root.root *.ttf
sudo mkfontdir
cd ..

Now edit fonts.cache-1 and add new line: "myfonts" 0 ".dir"
then:


sudo fc-cache

Done - the font(s) should now be available to all your programs

Alternative Approach

While I haven't tried it yet, installing TTF-fonts should be as easy as opening the location "fonts:///" in a Nautilus-window and then drag'n'drop' ttf-files from another window into this one. You need to log out and in again for the changes to become effective.


Back to top