Even with the most recent version of Ubuntu, it still lacks the truetype font kits that come with Windows. Sometimes we might want to use Trebuchet MS, Verdana, or — heaven forbid — Arial.

This is a quick tutorial on how to install the most common windows fonts on your Ubuntu OS. We will need to use the power of terminal. For all the newbies out there fret not! Just follow closely and you will have no issues!

What We'll be Doing

We're going to be installing the msttcorefonts package which consists of the following:

  • Andale Mono
  • Arial Black
  • Arial (Bold, Italic, Bold Italic)
  • Comic Sans MS (Bold)
  • Courier New (Bold, Italic, Bold Italic)
  • Georgia (Bold, Italic, Bold Italic)
  • Impact
  • Times New Roman (Bold, Italic, Bold Italic)
  • Trebuchet (Bold, Italic, Bold Italic)
  • Verdana (Bold, Italic, Bold Italic)
  • Webdings

Step 1: Open Terminal

Since we'll be using terminal we need to open it. For those running Ubuntu 11.04 (or later), you can simply search for terminal via the search function in the upper left-hand corner (click on the ubuntu icon). On older versions of Ubuntu you can look for terminal under System to find Terminal.

Step 2: Install the fonts

Type the following command

$sudo apt-get install msttcorefonts

You will be promoted to agree to various licenses, just scroll down and select OK and hit enter.

Step 3: Flush Font Cache

After all new fonts are installed, we need to flush the font cache via the following command:

$sudo fc-cache -fv

Installing the Missing Font

For some reason this package is mission the Tahoma font, not sure why. But to install the Tahoma font follow the instructions below:

Step 4: Installing Tahoma

Download the font here

Locate the IELPKTH.CAB file via the GUI controls and move the font to the desktop for ease of use.
Create a folder in the desktop to house all the files that we'll need to use, call it something like tahoma.

Note: you can do this via terminal as well via the following commands:
If cd Desktop isn't working then you'll need to find your way back to your user home, typically /home/%username%/Desktop/

cd Desktop
mkdir tahoma
mv IELPKTH.CAB tahoma

Step 5: Extracting the Goods

Once we have the .CAB file, we need a way to extract the goods inside since it's a complication of files. We need to use a utility called cabextract. This utility may or may not be installed, we can see by issuing the following command:

cabextract IELPKTH.CAB

If your are promoted to install cabextract, then do so now. Otherwise, the utility will run and the .CAB file will extract to the tahoma directory we created on our Desktop.

Step 6: Copy the Font

We need to copy the two .ttf files from our extracted .CAB file into the msttcorefonts file. We can do this by issuing the following command:

sudo cp *.ttf /usr/share/fonts/truetype/msttcorefonts/

Step 7: Flush the Cache again

Flush the cache again.

$sudo fc-cache -fv

Finally

To make sure our Ubuntu OS is recognizing the fonts we recently installed, open Libre Office, Open Office, or your favorite word editor and verify the fonts show in our font list and show correctly.

Be Sociable, Share!