Saturday, October 3, 2009

Installing TrueType fonts in Ubuntu

Switched to linux and feeling the lack of fonts? Not to worry. Installing ttf fonts is fast and easy. Here's how to do it in Ubuntu. Hope it doesn't vary much for other distros.
The first step, of course, is to download some ttf fonts to be installed. Or perhaps, you can copy them from your Windows drive, given you have one remaining. One of my favourite places for fonts is the Fonts section in
Once the fonts are downloaded, copy them to somewhere like Desktop. In case of zipped fonts, you have to unzip them to get .ttf versions.
Now open up a terminal and dive to the fonts directory.

   cd /usr/share/fonts/truetype

Now that you may perhaps install dozens of fonts in the future, it's a good idea to keep them separated from the pre-installed ones. So let's keep the new arrivals in a new directory.

   sudo mkdir myfonts
   cd myfonts

Note that you will be required to give the password in creating the new directory, if you're not logged in as the root.
The next step is to move our new fonts to their new home.

   sudo mv /home/<username>/Desktop/*.ttf .

Replace <username> with your username. Also take note of the dot (.) at the end of the statement, indicating that the files have to be moved to the current directory.
Now we have to notify ubuntu about the new arrivals like this:

   fc-cache -f -v ~/.font

Done! Now go to your favourite word processing application (AbiWord in my case) and enjoy the newly installed fonts to your heart's content!


Post a Comment


Thameera's Column Copyright © 2008 D'Black by Ipiet's Blogger Template