Home » Debian, Linux, Quick Tip, Windows

Quick Tip: How to install Windows fonts under Linux

12 October 2009 No Comment

A lot of webpages are build with “Windows” software and they are looking good only under Windows, and that only because of the fonts. Windows fonts can be installed under any distribution of Linux, so I will show you multiple way’s to install them.

Under Linux Debian just run as root:

apt-get install msttcorefonts

If you don’t have Linux Debian:

1. Copy *.ttf fonts from your Windows partition to virtual parition fonts:// under Nautilius
2. Copy *.ttf fonts from your Windows partition to virtual parition fonts:/// under Konqueror
3. Another working method for Ubuntu is to copy *.ttf windows fonts under .fonts folder created in your home folder.
4. This is the most generic method and it will made the fonts available for all users.
Find the path where True Type fonts are installed (/usr/share/fonts/truetype) or search this path with find. Read my tutorial Using find to search for files in Linux to have a clue about “find”.

find /usr -name '*.ttf'

Now copy all the *.ttf files from your windows folder to /usr/share/fonts/truetype/windows

$ mkdir /usr/share/fonts/truetype/windows
$ cd /usr/share/fonts/truetype/windows
$ cp /media/windows/windows/Fonts/*.ttf .

Now we should set the rights of the copied files

$ chown root.root *
$ chmod 644 *

Now we should index the new true type fonts

$ cd /usr/share/fonts/truetype/windows
$ mkfontdir
$ cd ..

Edit /usr/share/fonts/truetype/font.cache-1 and add

"windows" 0 ".dir"

Run
$ fc-cache

and you are done! Windows fonts are available to in your entire system.

Fonts what are coming with msttcorefonts

* 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

If you want the Windows Vista fonts then you should follow this tutorial to grab them, and in rest just follow my tutorial to add them to system.


Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.