Hi Rory,

> It seems that the letter spacing results I am getting on Safari 5.0.3 on
> the Mac are different from what I'm seeing on FF 3.6.14 on the Mac. The
> FF spacing is the one I want; the letter spacing doesn't seem to be
> getting applied in Safari, the spacing is too tight. 

There are a couple things involved here.  FF uses kerning information by
default, Safari does not.  FF also does subpixel positioning while Safari
snaps everything to pixel positions, as Philippe noted.  Last time I dug
around in WebKit code there was code that would fetch the subpixel
positions and then snap it to pixel boundaries. I seem to remember some
comment about KHTML rendering requiring integer pixel positions.

You might want to use this:

  text-rendering: optimizeLegibility;

In Safari that will enable CoreText rendering which will make use of
kerning.  My guess is this will give you results closer to those of FF 3.6.

You should also test with FF4 beta since this uses a new shaping engine,
Harfbuzz, on all platforms (Windows/OSX/Linux) in place of CoreText.

Hope this helps,

John Daggett
Mozilla Japan

______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to