This might turn into a rant, but in all honesty the only thing I am not too pleased about Linux is that not everyone else in the world is using it. Ok, that was enough venting. Lets get to the steak and potatoes of this tutorial!

So, you want your Linux to perform ultimately better than your previous (probably Windows) environment, and at the same time you want to sacrifice as little as possible. Linux seems to have a few “legal” problems with fonts in that aspect, so today were going to go beyond the “legal limits” and get Linux looking how it should. (With that said, most people design websites on Windows XP (or another OS), forget that most of the Linux-world doesn’t have the same fonts as them.

The specific fonts were talking about are: Franklin Gothic, Gautami, Kartika, Lucida Sans Unicode, Latha, Lucida Sans, Mangal, Marlett, Microsoft Sans Serif, MV Boli, Palatino Linotype, Raavi, Shruti, Sylfaen, Symbol, Tahoma, Tunga, and last but not least Wingdings.

Thats a whole lot of fonts us Tux-fans cant get access to.
Well, your wish is my command. I present to you the solution! (Brace yourselves… Its a tutorial!)

What You Will Need

  • A Linux PC
    I am running Ubuntu 8.04 here. Just some Linux knowledge to apply the commands to your distribution if your not using the same one as me.
  • Fonts Packedwithapunch Pack
    Thats the fonts pack I created with all of these wonderful fonts. Heck, I even gave it a fancy name!

The Steps

Hey, that was easy! Wheres that easy button again? Oh.. here it is!

  1. First, go download my Fonts Packedwithapunch Pack. Open up a terminal (ALT+F2) and type “gnome-terminal” or what ever terminal app you use. Xterm? Hey thats a nice one!
  2. Type in: “wget http://img.tutorialninjas.net/java-fontspwapp.tar.bz”. (Without quotes) Then hit Enter.
  3. Next, type: “tar -xjf java-fontspwapp.tar.bz” Then hit enter.
    PS. I hope your catching on. Don’t type the quotes, only whats inside of them! ;)
  4. Make a directory to copy those fonts.
    Type: “sudo mkdir /usr/share/fonts/truetype/pwap”
  5. Now copy the fonts to your usr/share!
    Type: “sudo cp -v java-fontspwapp/* /usr/share/fonts/truetype/pwap/”
  6. Now that the fonts are copied, lets refresh the font caches!
    Type: “sudo fc-cache -f -v”
  7. Once it finishes, your all done! I would reccomend for your own good to do a quick X restart. Do this by holding CTRL + ALT + BACKSPACE. Now your good to go!

Other Information

Ok ok ok, I know that smart-guy is going to come here and post: “Hey, there is a total easier way to install Windows fonts on Linux. Ok, before you say that– read the fonts I listed above and then think about saying that again. Raavi was not a font distributed under GPL- OK?!”

By the way, this tutorial is for Educational purposes only.

Comments? Questions? Anything else you want to say about this post? Let us know in the comments below.
…Hey that rhymed! Pretty flippin sweet for a ninja if you ask me!

6 Responses to “Properly Display Fonts on Linux”
  1. Venom says:

    linux is too complicated

  2. java says:

    haha! thats the best joke i ever heard Venom!

  3. Rickles says:

    Wow thanks, Sure Linux is complicated Venom, but it’s worth learning; for bragging rights if nothing else. I can’t wait till i can find another hard drive to install Linux on… Backing up everything and partitioning is not an option on the family computer so no duel boot for me… :(

    I can’t wait to try this out, I gotta wait for a ubuntu 8.04 VMware image downloads though. I was always curious about why fonts looked different. This is a great tutorial and i wish all of tutorial ninjas was like this. A comedic and informative intro. A useful topic. not how to make a grilled cheese sandwich… that’s just lame.

    Thanks, Rickles

  4. Marko says:

    Thanks for this one, but have a problem here. I’m using Ubuntu 7.04 but will full update.
    The problem is, when I type “wget http://img.tutorialninjas.net/java-fontspwapp.tar.bz” [without quotes] terminal says “ERROR:500: Internal Server Error”. I guess that is the web address from where I should download your file. I am quite new on LInux, installed it only few days ago and I am still catching things up.

    Thanks,
    Marko

  5. Aaron says:

    Yep, I get Error 500 too.
    Anybody know where this can be downloaded from?

  6. Borislav says:

    Somewhere I have seen … And if on that very much.

Leave a Reply