Skip to content
BENIBIX Learn

OpenType Features

Design🔤 TypographyType Sizes and Styles

Also known as OpenType Layout Features, Font Features, font-feature-settings

Extra letter styles hidden in a font. You turn each one on by its code.

Think of it like

They are like extra crayons hidden in the box. You have to ask for them.

Example

A price list turns on tnum, so every digit takes the same width. The columns of prices line up neatly.

Why it matters

A good font often has better small caps, numbers and joins than you see by default.

Definition

OpenType features are extra letter shapes and rules stored inside a font file. They can join letters into ligatures or swap in real small caps. They can also make numbers line up in columns. Each one has a four-letter code, such as liga, smcp or tnum. Many are off until you turn them on in a design app or in CSS. What you get depends on the font, since not every font has every feature.

Example code

css
.prices {
  font-variant-numeric: tabular-nums;
}
/* the same as: font-feature-settings: "tnum"; */
Two ways to turn on even-width numbers, so that the prices line up in columns.
Each switch turns on one feature: joined letters, small caps and even-width numbers.

Common mistake

Turning on a feature the font does not have. Nothing changes, so check what the font holds first.

Key takeaways

  1. 1
    Inside the font. The font file carries the extras.
  2. 2
    Four-letter codes. Like liga, smcp and tnum.
  3. 3
    Font decides. Not every font has every feature.

Learn it properly