Breaking News
Home / Sys Admin / Ubuntu / How to install Microsoft Fonts or True Type fonts in Ubuntu?

How to install Microsoft Fonts or True Type fonts in Ubuntu?

Ubuntu LogoFonts are getting better in Linux day by day, but still we want to see the fonts that we have used on Windows systems. They are just appealling to us as we have used them for a long time.
Or what about a document created using MS Word or PowerPoint in Windows using MS Fonts look like on Linux without those fonts?

So when you open them with Open Office or some other editor, since these specified fonts are not available on your computer, they are replaced with generic equivalents.These generic font may not give the same look and feel hence not convey the author real intend who created these. Fortunately its easy to get these fonts on Ubuntu, you new hot favourite.

To install the fonts, all you need to do in Ubuntu is to install the msttcorefonts package. Instructions for installation are given below. The TrueType Microsoft fonts provided by the package include:

                       MS Core Fonts

You can install the MS core fonts by installing the msttcorefonts package.
To do this, enable the “Universe” component of the repositories. This is done by default in Feisty, Intrepid .

After you do that, use the following command from the command line:

$sudo apt-get install msttcorefonts

* You have to logged in as root or be able to sudo as root.

This will give you the core fonts, but if there are other TrueType fonts that you want installed, it is as easy as copying the font files to a directory named fonts
in the user home directory i.e. ~/.fonts/ directory.

After installing new fonts, you will have to log out and log in again to be able to see and use the new fonts.
If you want to avoid this, you can refresh the fonts cache by issuing the following command:

$sudo fc-cache -fv

The following is the sample output

/usr/share/fonts: caching, new cache contents: 0 fonts, 3 dirs
/usr/share/fonts/X11: caching, new cache contents: 0 fonts, 6 dirs
/usr/share/fonts/X11/100dpi: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/X11/75dpi: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/X11/Type1: caching, new cache contents: 8 fonts, 0 dirs
/usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/X11/encodings/large: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/X11/misc: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/X11/util: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/truetype: caching, new cache contents: 0 fonts, 12 dirs
/usr/share/fonts/truetype/arphic: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/truetype/freefont: caching, new cache contents: 12 fonts, 0 dirs
/usr/share/fonts/truetype/kochi: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/truetype/msttcorefonts: caching, new cache contents: 60 fonts, 0 dirs
/usr/share/fonts/truetype/openoffice: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/thai: caching, new cache contents: 51 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-arabeyes: caching, new cache contents: 39 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-bitstream-vera: caching, new cache contents: 10 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-dejavu: caching, new cache contents: 6 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-indic-fonts-core: caching, new cache contents: 11 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-lao: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/unfonts: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/type1: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/type1/gsfonts: caching, new cache contents: 35 fonts, 0 dirs
/usr/share/X11/fonts: skipping, no such directory
/usr/local/share/fonts: caching, new cache contents: 0 fonts, 0 dirs
/home/mvohra/.fonts: caching, new cache contents: 342 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-malayalam-fonts: skipping, no such directory
/var/cache/fontconfig: not cleaning unwritable cache directory
/home/mvohra/.fontconfig: cleaning cache directory

As you see it search various folders and add the fonts it finds and adds it to the cache.
So you can add it to any one of these folders or into a .fonts directory in your folder as mentioned above.
In the above example my home directory was /home/mvohra
and I had copied my ttf font files from Windows into .fonts folder in home directory.
And when the font cache was executed, it found 342 font file that were in there and added to the cache.
   MS Fonts Loaded in Ubuntu

Just to see it worked, you can open any open open office application or editor and view and use these fonts by selecting it from the drop down.

You are one step closer by making your Ubuntu look and feel closer to your much favourite Windows fonts.

[pb_builder]

Check Also

How to check if Apache WSGI module is loaded in Ubuntu?

Answer To check if WSGI module is actually installed excute the following command. $dpkg -l …

Advertisment ad adsense adlogger