OpenType feature support in applications
The table is based on Martin Wenzel’s article ‘An Introduction to OpenType Substitution Features’
Font Technology OpenType | Information Brochure, 2011 | URW++ DESIGN & DEVELOPMENT GMBHOpenType Brochure URW++
Why we need to understand OpenType features
Much of the font creator programs offer nowadays simplified ways to create OpenType features. But when the things go wrong these programs could not help us. So we need to understand the structure, the logic and the syntax of the OpenType features.
Like in every other process, which we want to know how to rule, we need to start withe some learning. Here are the basic resources for OpenType features.
Tal Leming: The Unofficial OpenType Cookbook
Martin Wenzel, Christoph Koeberlin: An Introduction to OpenType Substitution Features
Glyphs: Tutorials Tagged “OpenType Features”
Common/standard ligatures (liga)
This feature replaces a sequence of glyphs with a single glyph, called a ligature, which is preferred for typographic purposes. When enabled, this feature inserts the ligatures which the designer/manufacturer judges should be used in normal conditions.
The ligatures feature is enabled by default, which means it should work without you having to write any CSS — but it’s not enabled by default in Chrome. Furthermore, it cannot be disabled in Safari (Mac or iOS). And some versions of Chrome and Firefox have trouble with ligatures that contain spaces.
Example LIGA | Typeface Vollkorn
<span class="clig-off">ff, fi, fl, ffi</span>
-moz-font-feature-settings: "liga", "clig";
-webkit-font-feature-settings: "liga", "clig";
font-feature-settings: "liga", "clig";
<span class="liga">ff, fi, fl, ffi</span>
ff, fi, fl, ffi ▶ ff, fi, fl, ffi
Small caps (smcp)
The small caps feature is disabled by default. To enable it with the font-variant property or font-variant-caps subproperty, use the value small-caps. To achieve the same effect with font-feature-settings, use the “smcp” feature tag.
Note that in some fonts, the small caps feature may also include other forms. Per the OpenType spec, the smcp OpenType feature “may include forms related to small capitals, such as oldstyle figures.”
Example SMCP | Typeface Vollkorn
The small caps feature is enabled.
See code .smcp.
Adjust the amount of space between glyphs to provide optically consistent spacing between glyphs.
Example KERN | Typeface Vollkorn
The kerning feature is enabled. See code .kern.
Oldstyle figures (onum)
The oldstyle figures feature is disabled by default. See the example how to enable oldstyle figures.
Example ONUM | Typeface Vollkorn
The onum feature is enabled 0123456789. See code .onum.
Lining figures (lnum)
The lining figures feature is disabled by default. See the example how to enable lining figures.
Example LNUM | Typeface Roboto
The lnum feature is enabled 0123456789. See code .lnum.
W3C: CSS Fonts Module Level 3
Adobe: Syntax for OpenType features in CSS
Bram Stein: The State of Web Type
Gustavo Ferreira: OpenType features in CSS
Richard Rutter: Web Typography: Numerals
Tim Brown: Caring about OpenType features
Robin Rendle: Font-feature-settings
AFDKO: OpenType™ Feature File Specification
TYPEDRAWERS: Collecting (glyph name) suffixes