# OpenType Features

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

**Field:** Design  
**Category:** Typography  
**Also known as:** OpenType Layout Features, Font Features, font-feature-settings

## Think of it like

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

## 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

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

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

## Why it matters

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

## Common mistake

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

## Three principles

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

## Related terms

- [Ligature](https://learn.benibix.com/term/design/ligature)
- [Small Caps](https://learn.benibix.com/term/design/small-caps)
- [Font](https://learn.benibix.com/term/design/font)
- [Variable Font](https://learn.benibix.com/term/design/variable-font)
- [Font File Format](https://learn.benibix.com/term/design/font-file-format)
- [Superscript and Subscript](https://learn.benibix.com/term/design/superscript-and-subscript)

## Taught in

- [Variable Fonts and OpenType](https://learn.benibix.com/learn/design-typography/variable-fonts-and-opentype): Typography, 13/17

![Three rows, each with a switch and a before and after. liga joins f and i into one shape. smcp turns the word nasa into small capitals. tnum lines up two columns of prices so each number sits right under the one above.](https://learn.benibix.com/diagrams/des3-opentype-features.svg)

---

Source: https://learn.benibix.com/term/design/opentype-features
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
