понедельник, 13 февраля 2012 г.

How to install Windows TrueType fonts (*.ttf) on Ubuntu

Download this archive with most popular Windows fonts: Arial, Calibri, Comic, Consolas, Georgia, Gothic, Lucida, Symbol, Tahoma, Times New Roman, Verdana.

Now, you’ve got to do a little terminal magic (Applications-> Accessories -> Terminal or Ctrl+Alt+T) 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
Move them from Downloads dir to /usr/share/fonts/truetype/myfonts:
# sudo mv /home/USERNAME/Downloads/*.ttf
Replace USERNAME with your own. Grabbing any .ttf files with a wildcard (*).
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.