RSS



How to install TrueType fonts on your Ubuntu computer

Thu, Jul 19, 2007

ArsGeek, Linux, Ubuntu, howto

Talk about it in our Forums

Have you ever wanted to just grab any old TrueType font of the web and start using it in applications on your Ubuntu machine? Did you know that you can and it’s not all that hard? Here’s how to get your system to recognize new fonts for any user.

First you’ve got to find a font you want to install. Open up your favorite search and look for true type fonts or .ttf files. I found a font called “A Cut Above The Rest” which I downloaded on to my desktop.

font1.png

Now, you’ve got to do a little terminal magic (Applications-> Accessories -> Terminal) to move this file into the right place and regenerate your cache of fonts.

Once in your terminal, we’re going to head down to where Ubuntu keeps it’s fonts.

cd /usr/share/fonts/truetype

Let’s make a directory to store all of your downloaded fonts in. We’ll call it myfonts.

sudo mkdir myfonts

Now move into that directory.

cd myfonts

Okay, so you’re here and the font(s) you just downloaded are on your desktop. What to do? Move them to this location like this:

sudo mv /home/USERNAME/Desktop/*.ttf .

Replace USERNAME with your own. Grabbing any .ttf files with a wildcard (*) makes it easy for you to download a bunch to your desktop and then dump them into the right place.

Now that you’ve got your fonts where you want them, it’s time to tell Ubuntu that they’re here.

fc-cache -f -v ~/.font

You can now open any program that utilizes system fonts and access your new font. Let’s see how OO2 writer looks.

font2.png

Click the icon, share the link:
  • Digg
  • del.icio.us
  • MisterWong
  • Furl
  • Reddit
  • Technorati
  • BlinkList
  • feedmelinks
  • PopCurrent
  • Blogosphere News
  • Facebook
  • Fark
  • Mixx
  • Slashdot

This post was written by:

arsgeek - who has written 1980 posts on ArsGeek.


Contact the author

10 Comments For This Post

  1. SamuelDr Says:

    eeeeeeeeeeh, why not copy them to the ~/.fonts directory? Unless you have many users that needs to use many fonts…

  2. arsgeek Says:

    Saves me a step. If I do have to let other users use my fonts (and with families, font sharing is something I encourage) I don’t have to copy fonts all over the place just so little Timmy can get the LivingDead.ttf file. :)

  3. SamuelDr Says:

    But, may I suggest that if you have your /home in a different partition (like I do) that if you want to share fonts, it could be a good idea to place it in a public directory on that drive and link it to /usr/share/fonts/truetype/mydir. That way, it could be possible to let users add fonts to it (without super-user privilege) and you can keep your fonts if there is a problem someday with your main os partition.

  4. Vinay Yuvashankar Says:

    I got stuck in step 4 (sudo mv home/username/Dekstop/*.ttf.) here’s what terminal said I am a very new person to this so mind my “noobiness”

    mv: missing destination file operand after ‘/home/USERNAME/Dekstop/*.ttf.

    Try mv –help for more information

    I did remember to replace username with MY account name

  5. arsgeek Says:

    Hi Vinay,

    You caught me in a typo. Try it again with the new line I inserted in the article.

    Thanks!
    Ben

  6. Truth Says:

    How to add ttf fonts on ubuntu

    http://www.youtube.com/watch?v=j4yebO-fRA8

  7. art Says:

    I believe I’ve followed these directions exactly, but OO writer still doesn’t recognize them. I have all the fonts in /usr/share/fonts/myfonts and in /usr/share/fonts/truetype/myfonts. fc-cache claims to have succeeded and found the 53 files in both myfont directories, but nothing in /home/art/.font.

    It would be helpful to know what the end state of the directories is. What is the purpose of /home/art/.font, and what should be in it?

  8. art Says:

    I got OO Writer to see the fonts. The problem is that I didn’t change the mode of the ttf files to be readable to all users. While that is “obvious” I spent a lot of time trying everything else, including reading a lot of articles. So it would be good to add to the instructions:
    sudo chmod 744 *.ttf
    Gimp can also access the files but can’t interpret some.

  9. Carson Walck Says:

    Intimately, the post is really the sweetest on this notable topic. I fit in with your conclusions and will eagerly look forward to your coming updates. Just saying thanks will not just be sufficient, for the phenomenal lucidity in your writing. I will immediately grab your rss feed to stay abreast of any updates. De lightful work and much success in your business efforts!

  10. Milan Says:

    Good Work I always had trouble with True Type Font. Hope I can follow those directions.

2 Trackbacks For This Post

  1. Virtual Hosting Blog » 100 Legal Sources for Free (as in Beer) Fonts Says:

    [...] ArsGeek: This free article shows you how to install TrueType fonts. Go to the forum to discuss the pros and cons of the suggestions, TrueType, or anything else you want to talk about. [...]

  2. Top Unix News » How to install TrueType fonts on your Ubuntu computer Says:

    [...] read more | digg story [...]

Leave a Reply