RightFont

OpenType features, and how to turn them on

What OpenType features are, how ligatures, small caps, figures, stylistic sets and swashes look, and how to turn them on in InDesign, Figma, Word and CSS.

8 min read

The short answer

Many fonts hold more than one shape for some letters and numbers: true small caps, oldstyle figures, real fractions, alternate letters. These are OpenType features. Your app shows the default shapes until you turn a feature on:

  • InDesign and Photoshop: the Character panel menu › OpenType
  • Illustrator: Window › Type › OpenType
  • Figma: Type settings in the Typography section, Details tab
  • Word: the Font dialog, Advanced tab
  • On the web: font-variant-* in CSS, or font-feature-settings

A feature only works if the font has it. If nothing happens, the font simply lacks that feature.

What OpenType features are

A feature is a set of rules inside the font that swaps one glyph for another, or moves it. Each has a registered four-letter tag: liga for standard ligatures, smcp for small caps, onum for oldstyle figures, ss01 to ss20 for stylistic sets. Apps show friendlier names, but the tags are what the font and CSS use.

A few features are meant to be on by default: standard ligatures, contextual alternates and kerning. Most others, small caps, figure styles, swashes and stylistic sets among them, stay off until you choose them.

Most design apps tell you when the selected font lacks a feature. InDesign puts it in brackets, such as [Swash]; Illustrator and Figma grey it out. Choosing it anyway does nothing to the text.

OTF, TTF and WOFF

Ligatures

Standard ligatures (liga) join letters that would otherwise collide, such as fi and fl. Most design apps turn them on by default. Discretionary ligatures (dlig), such as st and ct, are decorative, so you turn them on for a title or a wedding invitation, not for running text.

The word florist in EB Garamond twice: first with ligatures off, the f bumping into the l, then with standard and discretionary ligatures on, joining fl and st.
  1. With ligatures off, the f’s top hook droops into the top of the l: two separate letters bumping into each other.
  2. With standard ligatures on, f and l become one fl glyph, and the f’s arch runs smoothly into the l’s stem.
  3. The discretionary st ligature, where a looping arc links the s to the t.
Typography terms, from baseline to ligature

Small caps

Small caps (smcp) turn lowercase letters into capitals drawn at about the height of the lowercase. All small caps (c2sc together with smcp) turn the capitals too, which suits acronyms. When a font has no small caps, apps make fake ones from shrunken capitals. InDesign does, at the size set in Preferences › Advanced Type, and so can browsers.

Paris UNESCO in EB Garamond three times: UNESCO in full capitals, in capitals shrunk to 70%, and in true small caps.
  1. Full capitals: UNESCO towers over the lowercase of “Paris” and shouts.
  2. Fake small caps: the same capitals shrunk to 70%, with strokes thinner and lighter than the lowercase beside them.
  3. True small caps: drawn wider, with strokes as heavy as the lowercase of “Paris”.

Figures

Figures come in two styles and two widths. Lining figures (lnum) stand at about cap height; oldstyle figures (onum) rise and drop like lowercase. Proportional figures (pnum) are each their own width; tabular figures (tnum) all share one width, so columns of numbers line up. Style and width are separate choices, so a font can have four kinds. Some fonts also have a slashed zero (zero).

The same row of numbers in three sets of figures.
  1. Lining figures, about the height of capitals.
  2. Oldstyle figures, rising and dropping like lowercase.
  3. Tabular figures, each in a cell of the same width.

Fractions and ordinals

Fractions (frac) turn a number, a slash and a number into a real fraction. Ordinals (ordn) raise the letters after a number, as in 1st or the Spanish 1º. Superscript (sups) and subscript (subs) swap in small raised or lowered forms, mostly figures, for footnotes and formulas.

The text 1/2 3/4 1st in EB Garamond twice: first as typed, then with fractions on and the st set as superior letters.
  1. A fraction typed with a slash: 1, / and 2 as three full-size characters.
  2. The same fraction with fractions on: a small raised 1 over a small 2 on a steep fraction bar.
  3. The ordinal 1st, with st set as small raised superior letters.

Stylistic sets and alternates

A stylistic set (ss01 to ss20) swaps a group of letters for another design, such as a single-story a or a g with an open tail. Sets are numbered, and the font decides what each number means, so set 4 changes something different in each font. You can turn on several sets at once. Stylistic alternates (salt) and character variants (cv01 to cv99) offer other shapes for single letters.

The word Ballad in Fira Sans twice: with the default two-story a, then with stylistic set 4 and a single-story a.
  1. The default two-story a: an arched top over a small bowl.
  2. The same letter in stylistic set 4: a single-story a, just a round bowl and a stem. Both a’s in the word switch.

Swashes and contextual alternates

Swashes (swsh) are flourished letters, mostly capitals in italics and scripts. Use one or two in a title. Contextual alternates (calt) are usually on by default and work quietly: a script font picks a different shape for a letter depending on its neighbors, so that the letters connect and repeated letters do not look stamped.

Monte Rosa in EB Garamond Italic twice: plain, then with swashes on, the R and M sweeping into long curls.
  1. The plain italic capital R, whose leg ends in a short stroke at the baseline.
  2. The swash R, its leg swept into a long tail that curls below the baseline. The M turns swash too, with a large curl on the left.

Case-sensitive forms

Punctuation is drawn to sit with lowercase. In all caps, hyphens, parentheses and the @ sit too low. Case-sensitive forms (case) move them up to the capitals. Turn them on whenever you set a line in all caps.

The text (A-Z) @ in Work Sans twice, with guides at the baseline, cap height and middle of the capitals: first with case-sensitive forms off, then on.
  1. With case-sensitive forms off, the @ is set for lowercase: it hangs well below the baseline.
  2. With them on, the same @ moves up and centers on the capitals, its bottom just under the baseline.
  3. The hyphen moves up onto the dotted middle of the capitals. The parentheses move up a little as well.

Turn them on in your apps

Select the text first. Most apps can also keep features in a character or text style, so you set them once.

InDesign, Illustrator and Photoshop

  • InDesign: Type › Character, then the panel menu › OpenType. Ligatures, All Caps and Small Caps are items in the same panel menu. Character and paragraph styles can keep OpenType features too
  • Illustrator: Window › Type › OpenType. Its buttons cover ligatures, contextual alternates, swashes, alternates, ordinals and fractions; the Figure and Position menus set figure styles and superscripts, and Stylistic Sets has the sets
  • Photoshop: Window › Character, then the panel’s menu › OpenType. To pick alternates on the canvas, turn on Enable Type layer glyph alternates in Preferences › Type, then select a character

Figma and Sketch

  • Figma: in the Typography section of the right sidebar, open Type settings. Basics has Small caps under Letter case; Details has case-sensitive forms, numbers, fractions, stylistic sets and character variants. Hovering over a feature previews it, and features the font lacks are greyed out
  • Sketch: Text › OpenType Features in the menu bar. Kerning and ligature options are in the Text menu too

Word, Pages and Keynote

  • Word: open the Font dialog (Ctrl+D on Windows) and the Advanced tab. Its OpenType Features group has ligatures, number spacing, number forms, one stylistic set at a time and Use Contextual Alternates. Ligatures can change where lines break
  • Pages: in the Format sidebar, Style, click the Advanced Options button beside Bold and Italic in the Font section. It has the Ligatures menu, and Small Caps under Capitalization. For other features, choose Format › Font › Show Fonts (⌘T), then Typography in the window’s Action menu. Keynote uses the same Fonts window

Affinity

In Affinity Publisher 2, Designer 2 and Photo 2, choose Window › Text › Typography. The panel has ligatures, alternates, swashes, stylistic sets, figure styles and positions, and capitals, and Hide irrelevant features collapses the options that don’t apply to the selected text.

CSS on the web

Use the font-variant properties where they cover a feature: font-variant-caps, font-variant-numeric, font-variant-ligatures and font-variant-alternates. Keep font-feature-settings for the rest, such as a stylistic set by number:

.title { font-variant-caps: small-caps; }
.price { font-variant-numeric: tabular-nums; }
.logo  { font-feature-settings: "ss04" 1, "swsh" 1; }
What is a variable font?

See which fonts have them, in RightFont

A font’s name rarely says whether it has small caps or oldstyle figures. RightFont reads the features from every font in your library, so you can find, compare and try them before you choose.

  • Try them on every preview: the Preview panel’s OpenType fold has four tabs, Letters, Figures, Position and Sets. Click Small Caps, Oldstyle or Set 4, and every card and List row changes. Features no font in the list has are dimmed
  • Try them on one font: in Info, switch to Features for a line per feature the font has, with a switch for those RightFont can preview. Point to a line, and the specimen shows the words with and without it
  • See all of a font’s features: in a font’s Preview, the OT Features tab shows each feature with its tag and, for those off by default, the text without it and with it. Click a tag to copy the CSS line, such as font-feature-settings: "smcp" 1;
  • Compare a list: in the List view, add the Features column. It shows small caps, oldstyle and tabular figures, fractions, swashes and how many stylistic sets each font has

To find fonts by feature, choose View › Show Filters (⇧⌘F) and open OpenType under More. Choose Small Caps, Oldstyle, Tabular, Fractions or Style Sets, and only fonts that have every one you chose are left. The Ligatures tile finds discretionary ligatures. To keep the search, add a Smart Set rule, OpenType Features supports all or supports any, and the set stays up to date as fonts come and go.

Preview fonts in your own design

Sources

Keep reading

Write to us

We reply to the email address you give.