Fix and Get the Best Firefox Font in Linux
The first thing I noticed after I made that ‘switch‘ from XP to Linux is the firefox’s web fonts. It was way too ugly and extremely unpleasant to the eyes. I bet every new Linux user will complain about this and might get pissed off. This is certainly one thing that Linux Distro’s should work on on their future releases.
Anyway since I am a ‘convert’ now and currently using Linux Mint, I have no other option but to look for answers. I really don’t want to leave Linux simply by having this issue, I know there should be a way. Thank goodness! google has it. I mean the forum of Linux Mint has it, the search result was from google though. After following all the steps, you’ll see it’s great improvement and you’ll say that this is definitely MUCH better. There should be no reason now leaving Linux.
From speaker219 in Linux Mint’s forum:
- Open the ‘Terminal‘ window. Go to ‘Daryna‘ button > System > Terminal.
- Type this command: ‘ sudo apt-get install msttcorefonts ‘ without the quotes
- Once done, download this and extract all the files in ‘/etc/fonts‘

Note: This might freak you out. You might get an error code like ‘Permission denied‘ while extracting. I think that it is a well protected folder and write permission for a regular user is disabled, so as a workaround just simply extract the files first to the desktop. To override it with write permissions, we need to use nautilus to open a new window with super user privilege. On the terminal type ‘ sudo nautilus ‘ and you will have now a window wherein you can paste the extracted file in the /etc/fonts folder.
- Lastly, turn off the computer then back on. You will see that firefox’s font are more sexier now.
UPDATE:
Download this file, extract it to /home/$username/.fonts
If the directory doesn’t exist, just create it and paste all the contents there. To make it available for use to Firefox, then just do a right-click on your desktop click on change background themes, click the font tab and use the extracted file. It should look something like this.

Check now your Firefox’s font rendering. Here’s mine.
Before:

After:

For better surfing experience, download also the Firefox widget.
Similar Posts:
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed/Email and get articles like this delivered automatically.
Comments
Didn’t work for me. Fonts in Ubuntu still suck badly. The bold characters are too heavy (the hole in the “e” nearly fills in) and the regular characters seem grainy and a bit thin. Yes I’ve done the MSTTcorefonts, hinting, smoothing. Nothing seems to have much effect.
Hello. I don’t have a before/after comparison, but if you go to Yahoo.com in a default Ubuntu/Mint installation, you can compare it to this after picture:
http://xs216.xs.to/xs216/07262/Screenshot.png
Sorry for the double post, but here’s a before picture.
http://browsershots.org/png/original/94/94b594d416b27493005dbff0c2e5107b.png
I feel like an idiot for triple posting, but I just wanted to add this.
When you compare these two screenshots, the improvement doesn’t look that great. But let me note that some websites look worse with the default Ubuntu/Linux Mint fonts. Some are so bad that the text will overflow and add an additional column, throwing the entire page layout. This should help you resolve that problem, and is also very helpful if your eyes are used to good ole’ Windows fonts.
deric said that the links aren’t working…
here’s a mirror of both
before: http://g.photos.cx/94b594d416b27493005dbff0c2e5107b-a65.png
after: http://g.photos.cx/Screenshot-d65.png
I don’t really understand.. it looks like the “better fonts” look much worse then the default ubuntu fonts.. to me the windows fonts look very ugly..
And about someone mentioning having a problem with the default ubuntu fonts viewing a website and messing up the design, theres probably a good chance that its the designers fault, not the fonts.
I’m using Ubuntu 7.10 (Gutsy Gibbon).
I don’t know why fonts are so funky in Linux! This fix worked like a charm for Firefox, and I can’t thank you enough for it! The fonts are finally sharp, not a blurry mess anymore.
I actually installed this fix after I played with another one that sharpened the fonts for all GNOME applications but not firefox. I’m not sure if your fix works for everything or just firefox alone, but here’s what fixes GNOME fonts (like those present in all the native Ubuntu stuff)
http://howtoforge.com/sharp_fonts_gnome
I’m still having problems with OpenOffice fonts, but having fixed the fonts in the important areas makes me so much happier. Thank you!
This is great. Worked like a charm. I did not do the update step, because now a side-by-side compare of Windows machine and ubuntu machine looks very similar.
Well this is all old news now. I have ubuntu 8.10 and just set up the Appearances – font settings (sub pixel shading and ’slight’ hinting to sharpen fonts a touch).
I have to say now that my fonts are silky smooth limited only by my monitor – and compare admirably with my friend’s Macbook, and look nicer than the Windows alternative.
BTW these fonts are not supposed to be ‘Razor sharp’. The idea is to smooth them to make them look nicer – but they shouldn’t be fuzzy.
Anyway, it’s pretty much fixed in Intrepid Ibex – and there are lots of great fonts available for download.
I can testify, also, that if you compare the windows fonts to the linux fonts – on a properly set up machine with LCD display, the linux fonts definitely look better at all sizes – easy on the eyes and more legible.
” 3. Once done, download this and extract all the … ”
Hey, dude. Where’s the file you talk about. Does it still exist? If not, please re-upload. Thanks.
http://fontconfig.org/release/
for the missing file
I have tried this also … but the result was not very good
Then I have installed Opera 9.64 and the fonts are ok.
If you don’t like or cannot use Opera I suggest you to change the Firefox preferences:
Edit -> Preferences -> Fonts & Colors -> Advanced ->
Proportional: Serif Size: 16
Serif: Bitstream Vera Sans
Sans-serif:Bitstream Vera Serif
Monospace: Bitstream Vera Sans Size 12
Allow pages to choose their own fonts… (unchecked)
After it the fonts in Firefox become not perfect but readable
Ubuntu 8.10 System -> Preferences -> Appearance
without changes (Rendering – Best Shapes)
I use crt monitor so I don’t need Subpixel smoothing.
Doesn’t work for me. In Appearance Preferences window the segoe font does not appear. Maybe the directory is not detected with that path…?
download link in third step is dead
http://www.fileden.com/files/2006/8/13/166748/fontconfig%5B1%5D.tbz
could you pls, reupload that file?
Unfortunately Linux is replacing the Windows fonts because isn’t able display them, not all of them, installing msttcorefonts will not solve the entire problem. You can test setting the font-family for a page to Arial,Helvetica,Tahoma,Verdana,Sans-Serif, the size of the font will be much smaller with msttcorefonts.
This is not a solution to font rendering – all you’re doing here is changing the font. If the previous font looks better in Midori and Opera than it does in Firefox (because of rendering in the web-page) then changing the font will not cure the problem at all!!!
Trackbacks
- FUZZZ.GAULIN.ca » » The Evolution of an Ubuntu EeePC
- Linux: Highlight Firefox’s Address Bar in One Click | Ubuntu Site
- Arch Linux CORE « Jarrhed’s Blog
- The Ultimate Slackware Setup Guide « Jarrhed’s Blog
- No HTML Experience Needed* (So Says SiteGrinder) « PhilSpace
- Ubuntu 8.10: Inrepid Ibex (Beta) Review « Jarrhed’s Blog
- Linux’ta Firefox Fontlar? | ersin
- Firefox fonts on Gutsy « sonia hamilton - life on the digital bikepath - sonia@snowfrog.net
- MS fonts for Firefox « Ubuntu Quest


Hey I was wondering if you can include Before and After pictures?