[webkit-dev] Adding CSS3 font feature propreties
bashi at chromium.org
Thu Jun 23 20:16:59 PDT 2011
I'm thinking about adding CSS3 font feature properties support to WebKit.
It allows page authors to control over advanced typographic features.
Firefox has an experimental implementation and an article shows how
these properties work. I really would like to add this feature so I'd like
to ask comments and suggestions in advance.
My current plan is starting with adding the font-feature-settings property
(6.12 Low-level font setting control) as -webkit-font-feature-settings,
following a similar approach that Firefox did. For OpenType fonts, other
properties can be treated as specific cases of the font-feature-settings
property and I think adding this property is good starting point.
One shortcomings of this approach is that it requires OpenType support for
each port. A port which uses AAT might not be able to support this
property, or we need to add an extra text rendering subsystem which can
handle OpenType features to the port.
If I get started with this plan, I will start implementing css parsing part,
then implement font rendering part on a specific port (Chromium Linux port
is in mind for now) on trial.
I'd also like to put some notes of supporting CSS3 font feature properties
with AAT and CoreText here:
- AAT features are listed at .
- While the spec lists the equivalent OpenType feature tag for each
property, it is unclear that what AAT feature setting corresponds with each
property. An email written by the spec editor lists them partially but
-  describes OpenType support of CoreText (I'm not sure this is correct,
Comments and suggestions are highly appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev