3

A web project I'm currently writing has awful text rendering in Chrome 15.0 on Windows and below, despite text rendering perfectly on all other modern web browsers on both Mac/PC.

Internet Explorer 9:

enter image description here

Chrome 14.0:

enter image description here

The web page is encoded in UTF-8. The font used is Helvetica/Arial/sans-serif. Any suggestions?

PS - wheree isn't a typo.

Update: I've created a test page highlighting the problem, text renders fine in all browsers except Google Chrome on Windows. It's valid HTML/CSS according to the W3C validator.

http://wheree.co.uk/test

6
  • 1
    How strange. Could we have a look at your HTML and CSS? (Possibly on jsfiddle.net) Dec 13, 2011 at 14:10
  • 1
    This is pretty difficult to analyse without access to the source.
    – Mankarse
    Dec 13, 2011 at 14:10
  • @ErnestFriedman-Hill: “it's a Chrome-on-Windows installation issue” — huh, really? Dec 13, 2011 at 14:10
  • @PaulD.Waite -- yep, I've seen machines where Chrome renders all pages like this; nothing to do with the specific site. Might be a settings thing, I'm not sure; it's obviously nonoptimal if the default settings don't work. Dec 13, 2011 at 14:13
  • @ErnestFriedman-Hill: crikey, you’d think we could figure out decent basic default font rendering in browsers by now. Good spot. Dec 13, 2011 at 14:16

3 Answers 3

4

This was a problem worthy of StackOverflow after all. CSS Solution:

-webkit-font-smoothing: antialiased;
-moz-font-smoothing: antialiased;
font-smoothing: antialiased;
1
  • This doesn't work for me :S Dec 29, 2013 at 19:02
3

This sounds like it could be related to either ClearType or GPU rendering.

Here is a helpful article on how to fix font rendering issues.

1
  • Yes it's clearly something to do with anti-aliasing, or the lack of it, but it happens on all Windows PC's running Chrome I've seen? It's almost as if Chrome disables ClearType by default? The screen shot is taken from browser lab. I'm looking for a scripting based fix, rather user-end solution.
    – Ryan Brodie
    Dec 13, 2011 at 15:20
0

I always fix this problem by adding the following line to my CSS:

/* the line below is a hack to get Chrome to render fonts decently on Windows */
body { -webkit-text-stroke-width: 0.5px; }

Obviously not ideal but it produces pretty good results, should serve until Google finally decides to fix the problem for real.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .