Wednesday, February 13, 2008

Ubuntu Firefox Fonts

After moving to Ubuntu, our website was completely out of alignment when using Firefox. We had set our default the usual:

font-family: Arial, Helvetica, sans-serif;

Of course, Arial is a MS font. We decided that as a linux user, you would be expected to know how to tweak your computer, and hence it is reasonable to expect a linux user to know how to change their fonts.

To use Arial in your Firefox, do the following:

>sudo apt-get install msttcorefonts

and wait for a while. Maybe go have a coffee ;)

Afterwards, log out and log back in so that the new fonts can be loaded.

Next, you have to let Firefox know you want to use Arial. Go to:

Edit > Preferences > Content > Fonts & Colors > Advanced

Then change what you want to Arial. I set my serif and sans-serif to Arial. This seemed to do the trick, at least for our website.


W

No comments: