Industry guru Dave Taylor offers free tech support on a wide variety of technical and business topics, including HTML, Apple iPhone, online advertising, Cascading Style Sheets, Web design, management, Unix, Linux, search engine optimization, online dating, Mac OS X, shell script programming and Microsoft Windows.

Why do the fonts in Firefox Linux look so terrible?

Dave, Why is it that, "out of the box", the Firefox browser looks great (font wise) when run on a Windows OS but looks terrible (almost too small and unreadable) on any Linux OS I have tried it on. It is probably the number one killer reason for me not switching to Linux.


Dave's Answer:

At a standard screen resolution of 72 dots per inch, any small typeface is going to look pretty mediocre, and I know what you mean about Linux defaulting to a really high resolution for a given screen, which produces tiny type.

However, it turns out that it's pretty easy to change your desktop to have larger typefaces, or even to tweak Firefox to look better. The easiest way to have larger type across your entire Linux experience is to simply pick a smaller screen resolution. If you're at 1280x1024, for example, change it to 1024x768 and watch how everything gets a bit bigger and easier to read. Depending on your desktop and window manager, you might also be able to pick a different theme that has larger fonts too.

Within Firefox itself, you can change Firefox font settings from the Edit -> Preferences menu item (pick General, and click on "Fonts & Colors"). Pick a larger font, reload the page, and see how it looks. Of ocurse, you can also just use the key combination Ctrl-+ (the Control key and the + symbol at the same time) to make all the type on a Web page larger. I use that extensively when I browse the Web too, actually.

Hopefully those tips will help you out and let you give Linux another shot. I did ask a couple of Linux wizards, Dee-Ann LeBlanc and Ray Lischner, about this problem and they reported excellent results with Firefox on Suse Linux, Fedora and RHEL.



Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Stumble Upon    

Subscribe!

Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader.

Comments

I personally cheat...err....I mean, I install the Microsoft core web fonts (Verdana/Georgia) on Linux, and set the default proportional font to Verdana (even serif). The Times/Serif version that comes with Fedora isn't very easy on my eyes, and I prefer sans-serif font for the screen anyway.

Everything you need for installing Microsoft fonts on a Linux box is here:

http://corefonts.sourceforge.net/

Posted by: Stewart Vardaman at January 27, 2005 12:30 AM

If you choose "other" for the font size, you get a dialog with a horizontal line. Meaure the line and enter the length in decimal notation, so if (for example) the line is 1 9/16 inches, you would enter 1.5625 and select inches, then click OK. Your choices are inches or centimeter.

To the right of display resolution in the Fonts and Colors dialog there is an option to set the minimum font size.

Posted by: Ernie N. Wilcox, Jr. at January 27, 2005 1:21 PM

Dave had some good information, but I believe he missed the point of the question. I had the same problem with all Mozilla and Netscape browsers. The problem is not in the User changeable fonts but those in the hard-coded areas of the menus and the URL addr box. I solved the problem by using Gnome instead of KDE. KDE does not seem to properly display Mozilla windows. I'm not an expert, but KDE does pretty well with all other windows, but there seems to be a problem or at least a font shrinkage with Mozilla browsers. KDE is a little too much like Windows for my taste, so the change to Gnome was a good solution for me towards a plainer and more easily read display anyway.
--Richard

Posted by: Richard Kircher at January 27, 2005 4:15 PM

Good tip, Richard. I lean towards GNOME over KDE anyway. :-)

Posted by: Dave Taylor at January 27, 2005 4:18 PM

The problem is that the form fonts are too small by default. There are several places you can adjust these.
First, look for the userChrome.css file (usually under ~/.mozilla/firefox/yourprofile/chrome). There is an example file there which you can save as userChrome.css. Add this section:
---clip
* {
font-size: 7pt !important;
font-family: Tahoma !important;
}
---clip
and adjust the font and size as necessary.
Second, in the userContent.css, add the following entry:
---clip
input, textarea, select, button,
input[type="button"], input[type="reset"], input[type="submit"] {
font-size: 8pt !important;
font-family: Verdana !important;
}
---clip
and adjust the font and size to your liking.
Oh, and please, changing your gui to fix fonts in one application is like trading in your car because you ran out of gas.
I Hope this fix helps. And, I cannot take credit for this fix, it is posted on the page http://convexhull.com/mandrake_fonts.html by a very helpful Mandrake user named Noel Llopis. (Thanks to him.)

Donn

Posted by: Donn Shumway at January 31, 2005 4:54 PM

Great stuff, Donn, and yes, changing your entire GUI because one app looks crummy is a bit daft, but the original question referred to "all apps being too small", hence my suggestion.

Posted by: Dave Taylor at January 31, 2005 6:41 PM

Another good global font solution is to set your actual 'Usable' screen size in your XF86Config or xorg.conf file. Measure your usable screen size in millimeters (Width then Height). Now In the Monitor Section, under the specific Monitor you are using (you can have more than one), add a line that says:
---clip
DisplaySize 360 270
---clip
and replace your actual measurements (remember, in millimeters). Now restart X. You may have to adjust all your fonts again, but now the X server is rendering your fonts based on the actual size of the monitor. Some distros don't do this well on Install. If you don't like what it did, you can comment out this line and restart X and you will be back where you started.

Donn

Posted by: Donn Shumway at January 31, 2005 8:02 PM

Following Richard Kircher's line of thought, the answer to this question can be found at:

http://ubuntuforums.org/showthread.php?t=22232

Posted by: Christefano at October 26, 2005 2:41 PM

Dave I also think you may have missed the point. I set my resolution to the exact same specs on linux as on windows, so that can't be the issue.

Out of the box, linux turns people off. The fonts on LCD monitors especially are extremely blurry/crooked, with the exact same resolution settings as on Windows.

Programs that use GTK are bad. QT is better but still not clear like Windows.

Until these basic issues in linux are fixed, not many people will take it seriously as a desktop operating system.

The other issue I noticed immediately when using firefox on Linux is that the downloads suck up all the bandwidth. On Windows i can download a huge file and browse the internet at the same time. On linux the download sucks up all the bandwidth and I cannot browse the internet at even turtle pace.

I know these issues can be fixed by going into certain config files and maybe even recompiling the kernel (laughing out loud) but the fact is that out of the box linux is not good for a desktop right now. It's okay, but it isn't good. It's definitely not great.

Don't get me wrong - I use linux and bsd every day myself on my local servers and public web servers. But I'd like to see these issues for the desktop cleaned up with linux. It doesn't matter whether we can go into config files and fix these issues - what matters is what works out of the box - because people are lazy, even ambitious programmers who know what they are doing like to have a working, clean, and clear system out of the box.

Posted by: L505 at December 13, 2006 12:40 PM

Christefano is right. By simply enabling the mapping between gtk and qt things can really get cleaned up.
For Gentoo users this is the gtk-engines-qt package.

~quickshiftin`

Posted by: quickshiftin at February 5, 2007 7:53 PM

Reduce the screen resolution! That's just daft, man...

Posted by: harri at September 10, 2007 3:32 PM

yeah I'm using ubuntu and everything on firefox looks ugly

Posted by: I know what you mean at May 20, 2008 11:52 PM

hey dave i am a newbie here but using firefox first time was awful due to fonts being displayed badly, it was a simple case opf preferences in fire fox for the web page yet this was not the only problem the input font (for want of a geekword) was tiny so i assumed it was a fedora/linux problem, simply went to system preferences, look and feel. appearance, font tab then adjusted the application font hey presto just like magic.perfect.hope thisd helps all.
fedora 8

Posted by: p crowther at August 25, 2008 12:54 PM

Wow. That is the worst solution to a simple problem I have ever seen. No, I'm not going to post another solution. But changing your resolution to fix a font size issue is just retarded. Any LCD screen will look "off" if you use anything other than its native resolution.
Sigh..

Posted by: Dave at December 13, 2008 3:29 AM

I want to add another font (specifically Matura MT Script Capitals) to the directory that Firefox hits. This server is a linux (SUSE) box and this is a new HDD (the old one tanked). So where is that directory?

Thx

Posted by: Alex Nagy at March 2, 2009 10:44 AM

I've noticed that under Gnome/Ubuntu, the default hinting setting makes fonts look a lot worse than they have to.

To change this, go to System>Preferences>Appearance... select the Fonts tab and click "Details..." set the Hinting option to "Slight".

This improves TrueType font rendering quite a bit. You may also want to check the dpi setting, however I leave this alone as I'm a web developer and need to match the mainstream settings across OSes as much as possible.)

Posted by: Larry Kyrala at April 24, 2009 11:17 AM

Some fonts that are used by some sites, that are found on debian and ubuntu systems, end up being antialiased to death. I end up forcing my own fonts on pages.

Posted by: Hellmark at May 22, 2009 1:27 PM

Take a look at this theme, it changes my visual experience with firefox in ubuntu

Posted by: Daniel Martinez at August 9, 2009 11:39 AM

The fonts in Firefox Ubuntu looks great!

Posted by: J at August 29, 2009 1:46 PM

Hi, you saved my day, thank you!

I didn't resolved all my firefox font problems, but most.

Posted by: Yogsototh at January 7, 2010 6:42 AM

I have something to say, now that you mention it, but ...
Starbucks coffee cup I do have a lot to say, and questions of my own for that matter, but first I'd like to say thank you for all your efforts on this Web site by buying you a cup of coffee!

I do have a comment, now that you mention it!











Remember personal info?


Please note that I will never send you any unsolicited commercial email. Ever.

While I'm at it, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site.








Ask Dave Taylor: The iPhone App: Advertisement


Uniblue: Get A Free Virus Scan!

Follow me on Twitter @DaveTaylor

Search
Find just the answers you seek from among our 2300+ free tech support articles by using our Lijit search engine.


Linux Journal: Free Issue!

Help!





Subscribe to
Ask Dave Taylor!

Add to Google Reader
Add to My Yahoo!
Subscribe in NewsGator Online

RDF   XML

Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.


Recent Entries
Book Links
© 2002 - 2010 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site.

[whiteboard marker tray]
"Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.