Saturday, June 28, 2008

How to enable kerning in Firefox 3?

http://ubuntu-snippets.blogspot.com/2008/06/how-to-enable-kerning-in-firefox-3.html
"If you don't know about kerning please visit wikipedia article on kerning. Kerning deals with space adjustments between letters to make words more readable. Now a days most of the fonts are shipped with kern hinting but very few applications make use of this extra information. Firefox 3 now officially supports kerning for text elements.

Please make sure you only apply kerning to the elements which use larger font sizes because you won't observe much difference with smaller ones. And use kerning carefully as it could slowdown page rendering because of extra math calculations.

With Firefox 3 you can use the css property text-rendering to enable or disable kerning. text-rendering takes following 4 possible values.

  • auto - default value of text-rendering. Gecko will try to guess which one of the following option to use probably based on some kind of global setting.
  • optimizeSpeed - will disable font kerning.
  • optimizeLegibility - this option enables kerning & ligatures.
  • geometricPrecision - this option also enables kerning."

No comments: