Stuff & Nonsense Home

Where you’ll find designer, author and speaker Andy Clarke. The bastard.

Blogging And All That Malarkey

Type does not look exactly the same in every browser

Joe Drew, one of the people on Mozilla’s graphics team has responded to my comment on First Impressions on Typekit; Studying type rendering closely also calls into question the natural differences between the ways that browsers render type as I discussed in Walls Come Tumbling Down. Safari’s text rendering is clearly more refined and superior to Firefox 3.5.

As one of the people on Mozilla’s graphics team, I’d love to hear what issues Firefox has with font rendering so we can fix them. Doing, say, a follow-up post with screenshot comparisons would go a long way!

I'm happy to oblige.


Text rendering. Safari 4 / Firefox 3.5 / Opera 10 Beta

One of the major reasons why I prefer Safari over every other browser on OSX is the delicate way that it handles text rendering, the thinness of its characters and the subtlety of how it handles text-shadow.

In contrast, Firefox's text rendering has always seemed heavy-handed. Characters look bolder and blocky, text-shadow is wider, stronger.

If Firefox is heavy-handed, Opera wears boxing gloves weighed down with lead. Leaving aside its newfound issues with Typekit delivered @font-face, Opera's rendering of any typeface bears no comparison to the subtlety expressed by Safari.

I can hear those words ringing again in my ears, web sites need not and should not look the same in every browser. Moreover, given the current discrepancies in text rendering, they cannot — no matter how hard you try.

Leave your comment

Charles Roper

July 19 2009 @ 04:02am #

I, for one, would be very happy indeed if Firefox at least offered as an option, OS X / Safari-style rendering on Windows. Many prefer Windows’ more spindly, more heavily hinted ClearType rendering (it does look more crisp, it has to be said) and that’s fine, but for reading websites, I personally prefer Safari rendering. Linux (Ubuntu, at least) gets it right in that you can specify the level of hinting you desire at the OS level, so you can have OS X-style rendering, or ClearType-style rending, or something in between. It’s really great.

Michael Jackson

July 19 2009 @ 04:18am #

Thank you for bringing this to the attention of the Firefox team. I was going to write a similarly themed article, but nobody reads my blog so it wouldn’t have made much impact. :]

Right now I’m a bit reluctant to use @font-face with Firefox 3.5 simply because the font is always displayed too heavily. Kudos to the Firefox team for making progress with web fonts, but they can definitely borrow one from WebKit’s playbook here.

Charles Roper

July 19 2009 @ 04:32am #

On my Windows Vista machine, font rendering on FF 3.5 looks almost buggy it’s rendering so ‘thin’. Have a look:

http://twitpic.com/asc7f/full

From left to right we have Firefox 3.5, then Safari 4, then Chrome. To my eyes it’s a toss-up between Chrome and Safari. I’m feeling Safari may be rendering a bit too ‘fat’ in this instance. The “Type does not look” like kind of looks best in Firefox, though. The same looks a bit muddy in Safari.

All of this kind of reminds me of the issues faced by typographers using letter-press. You had to choose the right typeface for the paper. Thinner, more delicate, typefaces wouldn’t press into poor quality paper, and so the typographer would be required to choose a more robust font. We have a similar situation here: we need to choose typefaces that are going to render adequately across a variety of browsers. The onus is also on designers to test that their font-choice is rendering well on a variety of systems.

Matt Thomas

July 19 2009 @ 05:03am #

FF 3.5/Win is clipping some descenders in several Typekit fonts; I noticed this both in the Typekit admin and on the site I’ve been using it with. Firefox on the Mac has no trouble. Here’s a screenshot of Bello Pro in the Typekit admin.

Robert O'Callahan

July 20 2009 @ 06:19pm #

We’re not doing our own text rasterization in Firefox. We’re just using system APIs, so I don’t know why we’d get different results from Safari.

Have you got a link to the example page that generated that screenshot?

Matt Wilcox

July 20 2009 @ 07:49pm #

Most of the issue I have with font rendering differences between FF and Safari come down to the OS.

Windows produces text that’s too thin and spidery a lot of the time. Safari on Windows can use either the OSX or Windows algorithms, and the OSX one’s produce clearly better characters. However, the situation reverses once you hit light text on dark backgrounds - where OSX produces vastly overweight characters and Windows looks far better.

My issue with FF’s text handling are actually issues with Window’s text handling - trying to use -moz-transform on text in a Windows environment results in incomprehensibly ugly and “broken” looking type, to the point where I simply won’t use it at all. Chrome on Windows looks just as shoddy, and so does Safari if you switch to the Windows text renderer.

Discrepancies in effects are a little annoying too, text-shadow is especially obvious with the -webkit and -moz varieties producing clearly different looks.

Frank Stallone III

July 21 2009 @ 11:58am #

First of all I can not wait for your new DVDs. =)

Second this is a great article that I can use for fuel in (healthy) arguments at work. Thank you kind sir!

Charles Roper

July 21 2009 @ 05:53pm #

“trying to use -moz-transform on text in a Windows environment [on Firefox] results in incomprehensibly ugly and “broken” looking type, to the point where I simply won’t use it at all.”

@Matt Wilcox I would agree, some sort of combination of Firefox’s effects seemed to be destroying text rendering on Firefox, but I can’t figure out what it was exactly.

Chrome on Windows looks just as shoddy, and so does Safari if you switch to the Windows text renderer.

Not sure what you mean here because both Chrome and Safari look like they are rendering correctly on Windows here. The difference between Windows’ ClearType rendering strategy and the OS X text rendering strategy are apparent (ClearType more heavily hints text, forcing it to the pixel grid, which gives it a more crisp, if ‘thin’ appearance; OS X rendering does not hint giving it a less sharp appearance, but one that respects the shape of the glyph more closely), but I wouldn’t say either are ‘shoddy’. If you’re not accustomed to it, ClearType can look too thin, but, equally, if you’re not accustomed to OS X style (as seen in Safari on Win) rendering, it can look to fat and fuzzy. It’s mainly just a matter of perception and taste. As a general rule, I find discerning designers prefer Safari rendering, while ‘normal folk’ seem to prefer the crisp qualities of ClearType.

It’s a massively subjective issue, though, as illustrated in this article and the resulting comments.

Something to note is that Windows 7 has a new text rendering API called DirectWrite which produced something they call Natural ClearType. It sounds to me a lot like the Quartz way of doing things. Details here. From the demo I found here, that does indeed seem to be the case.

Something that has me particularly excited about DirectWrite is much better support for OpenType (see Font Art heading), which will allow contextual letterforms and the rest of the loveliness full OpenType support brings. More cool demos can be found in this video (16 minutes onwards).

So the question is, when are the browser-makers going to support DirectWrite?

Robert O'Callahan

July 21 2009 @ 06:00pm #

Firefox already supports contextual shaping on Windows. On Mac we will soon, when we switch to Core Text (ATSUI’s Opentype support is rubbish).

Charles Roper

July 21 2009 @ 06:38pm #

Robert, does it support DirectWrite’s new sub-pixel rendering? This will not only yield much improved glyph rendering, but better animation and transform quality. See this video at 22 minutes onwards. It’s not looking like it is there on my Firefox 3.5 running on Windows 7 Release Candidate.

Robert O'Callahan

July 21 2009 @ 06:56pm #

No, not yet.

Charles Roper

July 21 2009 @ 07:54pm #

But it’s planned? (he says, fingers-crossed)

Adam Fellowes

July 21 2009 @ 08:16pm #

Rendering of fonts in a browser is one of the reasons I’m still very unsure of font embedding in this way.

Take this for an example, I have a big name client, they have a brand manager who I’ve sold the idea of being able to embed their corporate font as used for all offline documents, advertising and promotion. Having had to put up with arial online she is very excited and has told the CEO about how the next release of the corporate site will now be aligned with the brand guidelines that the company invested in heavily a couple of years ago - they are all very excited.

She see the result of embedding their font into the proposed designs and they don’t look anything like the new marketing campaign that the new site is supposed to support. She’s now angry with me and not going to look particularly good in front of her CEO, I have a lot of bridges to rebuild if I want to keep the client for much longer.

Just a thought…

Commenting is not available in this channel entry.
Hardboiled Web Design

Hardboiled Web Design by Andy Clarke

How the latest technologies and techniques will make your websites more creative, flexible and adaptable. Get hardboiled in all formats from Five Simple Steps. Digital formats also available at Amazon.com, Amazon.co.uk and the iBooks store.

We’ve deconstructed this site to focus on content while we restyle. Expect wonkiness during the transition.