Enabling OpenType Features with font-feature-settings
Old-style figures, discretionary ligatures and swashes in a few lines of CSS.
Most good fonts ship with features that never get switched on. CSS makes them available, and a few lines are enough to make body text feel typeset.
Setting type in the browser is still typesetting. The measure, the leading and the rhythm of the page matter as much on a screen as they did in a chase.
From the Case to the Stylesheet
p {
font-feature-settings: "onum" 1, "liga" 1, "kern" 1;
}
.headline {
font-feature-settings: "dlig" 1, "swsh" 1;
}The good news is that CSS now gives us most of the controls a compositor had, from ligatures to hanging punctuation, if we are willing to use them.
- Limit the measure with the ch unit.
- Use unitless line-height values.
- Load only the font weights the page actually uses.
Have a correction or a story of your own? Write to the desk at desk@example.com and we will add it to the next issue.

Small correction: I believe the date on the second specimen is a few years later than stated.
I would love a follow-up on how you store all of this.
My thoughts exactly after reading the piece.