Mastodon
Back to home

Trouble with @font-face Thickness in WebKit.

While Webkits default subpixel-antialiased type looks good in many cases, if you’re using a font service like Typekit many of those fonts tend to render thick in Webkit. In my opinion WebKit’s text rendering is too thick and bloated by default. This is usually a problem that can be fixed by applying the following webkit vendor-prefixed property as mentioned in a blog post by Max Voltar:

-webkit-font-smoothing: antialiased;
                

We recently ran into a situation where we were using @font-face to include a custom font in a mobile website we were developing. The type was still rendering thick even after we tried common fixes like applying a text-shadow to text and the -webkit-font-smoothing fix mentioned above. The solution was to apply a 3D transformation of 0px to the elements that we’re too thick.

-webkit-transform: translate3d(0px, 0px, 0px);
                

The image above shows the before and after results when this rule is applied. By applying this rule to our CSS it also eliminates the “pop” you get when animating the element. The end result gave us consistent font rendering across all webkit browsers.

February 27, 2012

Nokia introduced the new Nokia N9 smartphone. Among the notable feature; a slick UI and no physical front buttons. The Nokia N9 runs the MeeGo 1.2 OS and it’s web browser is based on Webkit 2.

June 21, 2011
May 23, 2011
Related Tags

A number of exciting new features have been added to the Webkit Web Inspector. It now has three new panels, Timeline, Audits and a Dedicated Console.

April 15, 2010
Related Tags

jQuery UI 1.7

A new domain, hundreds of bug fixes, and a new theming engine. I haven’t tested it yet, but I believe they’ve also included a patch which allows most elements to work in Mobile WebKit.

March 06, 2009
Related Tags