Tuesday, November 13, 2007

Installing Vista Fonts in Ubuntu

Microsoft’s new ClearType fonts for Vista are great. The fonts include Constantia, Corbel, Calibri, Cambria, Candara and Consolas.


Getting them installed in Ubuntu is a breeze, thanks to a script I found.
To install the Vista ClearType fonts in Ubuntu, you need to install cabextract first. Cabextract is a utility found in the universe repository, so before you run the following command, make sure you have universe enabled in your repository list. Once this is done, install cabextract using:

$sudo apt-get install cabextract


Then, once that is done, use this script to install the Vista fonts. Create a file called “vista-fonts-installer.sh” in your home (~) directory.

Then open up a text editor and copy and paste the script into that file.

Do a chmod a+x ~/vista-fonts-installer.sh to make the file/script executable.

Then run the script using:

$ ~/vista-fonts-installer.sh


The script downloads the Powerpoint Viewer installer from microsoft.com, and then extracts the Vista cleartype fonts using cabextract. These fonts are then installed in the ~/.fonts directory.


Please remember that the ClearType Vista fonts are not free as in they are not GPL-ed or made available under a re-distributable license. Since you are downloading the fonts from the MS website, and since you might already have a Windows XP/Vista license, this is not a crime, but consider yourself warned against the perils of supporting closed systems.

Update::



  1. Looks like the use of these fonts are restricted to only Microsoft Windows/Vista operating systems according to the terms of the license. I am sorry, but you’ll be installing them at your own risk.

  2. Also, please make sure you use the bash shell, or change the first line of the code to #!/bin/bash



1 comment:

Andrew Z said...

I prefer using cabextract, but you can also install the Vista fonts using Wine. If the license does not suite you, you can setup font substitution in OpenOffice.org.