NeedFontDocumentation
OpenType Features

OpenType Features Overview

OpenType features unlock the full potential of professional typefaces—ligatures, small caps, alternate figures, and much more.

What Are OpenType Features?

OpenType features are built-in capabilities within font files that enable advanced typography. They work through two mechanisms: glyph substitution (GSUB)—replacing one glyph with another—and glyph positioning (GPOS)—adjusting the placement of glyphs relative to each other.

GSUB (Substitution)

Replaces glyphs with alternates. Examples: ligatures (fi → fi), small caps, stylistic alternates, contextual substitutions.

GPOS (Positioning)

Adjusts glyph positions. Examples: kerning pairs, mark positioning, cursive attachment for connected scripts.

Feature Categories

Ligatures

Ligatures combine two or more characters into a single glyph. They solve awkward collisions (like the dot of “i” hitting the overhang of “f”) and can add elegance to text.

fi fl ff
Without ligatures
fi fl ff
With ligatures

Tip: Standard ligatures (liga) are on by default in most software. Discretionary ligatures (dlig) must be explicitly enabled and may be too decorative for body text.

Numeral Styles

Professional fonts often include multiple numeral styles. Choosing the right style improves readability and visual harmony.

0123456789

Lining Figures

All digits sit on the baseline and reach cap height. Best for headlines, all-caps text, and tables.

0123456789

Oldstyle Figures

Digits have varying heights like lowercase letters. Best for running text, blending with body copy.

111
888

Tabular Figures

All digits have equal width for vertical alignment. Essential for financial tables, data displays.

111
888

Proportional Figures

Digits have natural widths (1 is narrow, 0 is wide). Best for running text where alignment isn't needed.

Small Caps

True small caps are not simply scaled-down capitals—they're optically designed with adjusted stroke weights and proportions to match the x-height and color of lowercase letters.

FAKE SMALL CAPS
Scaled capitals: too light, poor proportions
ᴛʀᴜᴇ sᴍᴀʟʟ ᴄᴀᴘs
True small caps: balanced weight, proper design

Feature Reference

TagNameDescription
ligaStandard LigaturesCombines certain character pairs into single glyphs for improved appearance (fi, fl, ff, ffi, ffl).
dligDiscretionary LigaturesAdditional ligatures for stylistic effect (ct, st, sp). Not always appropriate for body text.
caltContextual AlternatesReplaces glyphs based on surrounding characters. Essential for connected scripts and code fonts.
smcpSmall CapsReplaces lowercase letters with small capital forms, optically designed for this size.
c2scCaps to Small CapsConverts uppercase letters to small caps as well.
onumOldstyle FiguresUses old-style (text) figures that have varying heights, ideal for running text.
lnumLining FiguresUses lining (tabular-height) figures, all the same height as capitals.
tnumTabular FiguresUses monospaced (equal-width) figures for alignment in tables and columns.
pnumProportional FiguresUses proportionally-spaced figures where each digit has natural width.
fracFractionsConverts sequences like 1/2 into proper fraction glyphs.
supsSuperscriptsReplaces characters with optically-designed superscript forms.
subsSubscriptsReplaces characters with optically-designed subscript forms.
ordnOrdinalsFormats ordinal indicators (1st, 2nd, 3rd) with proper superscript forms.
swshSwashProvides decorative swash alternates, often for initial or final letters.
saltStylistic AlternatesAccess to alternate glyph designs for individual characters.
ss01–ss20Stylistic SetsGrouped sets of alternates, each set applying a consistent style variation.
kernKerningAdjusts spacing between specific letter pairs for optical consistency.
caseCase-Sensitive FormsAdjusts punctuation and symbols for use with all-caps text.

Using Features in CSS

OpenType features can be enabled in CSS using font-feature-settings or the newer, more readable high-level properties.

/* Low-level: font-feature-settings */ .fancy-text { font-feature-settings: "liga" 1, "dlig" 1, "smcp" 1; } /* High-level properties (recommended) */ .body-text { font-variant-ligatures: common-ligatures; font-variant-numeric: oldstyle-nums proportional-nums; font-variant-caps: small-caps; }
CSS Property Reference
font-variant-ligatures
common-ligatures, discretionary-ligatures, contextual
font-variant-caps
small-caps, all-small-caps, petite-caps
font-variant-numeric
lining-nums, oldstyle-nums, tabular-nums, proportional-nums
font-variant-alternates
stylistic(), swash(), styleset()

Discovering Available Features

Not every font includes every feature. NeedFont automatically extracts and displays available OpenType features for each font in your library.

AI Feature Discovery

NeedFont's AI analysis identifies and documents OpenType features in your fonts, explaining what each feature does and showing preview examples.

Continue Learning