Vol. VII  ·  No. 212  ·  Weekly Edition Reader-Supported Edition

The Weekly Journal of

Type  ❖  Print  ❖  Paper  ❖  The Craft of the Page

Enabling OpenType Features with font-feature-settings

By Daniel Ferreira September 20, 2026 Web Type 1 min read 137 Views 3 Comments

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

CSS
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.

3 Comments  on this dispatch

  1. O
    Oscar Whitfield Reply ›

    Small correction: I believe the date on the second specimen is a few years later than stated.

  2. F
    Felix Brandt Reply ›

    I would love a follow-up on how you store all of this.

    1. M
      Marisol Ortega Reply ›

      My thoughts exactly after reading the piece.

Leave a Comment

All comments are reviewed prior to publication. Your email address will not be displayed. Fields marked * are required.