Skip to content

salt — Stylistic Alternates

salt (Stylistic Alternates) replaces the default glyph with an alternate chosen for the typeface’s own stylistic design.

It targets alternates that don’t fit a clear category like swash or hist. As with swash glyphs, a single glyph can have more than one alternate candidate.

Without salt
MN
With salt
MN
.fea source
Compiling…

Choosing among the alternate-glyph features

Section titled “Choosing among the alternate-glyph features”

Three features give access to alternate glyphs, salt among them.

Feature Purpose
aalt Gathers all the alternates of a selected glyph and lets the user choose among them
salt Replaces the default glyph with an alternate chosen for the typeface’s stylistic design
ss01–ss20 Replaces a meaningfully labeled set of glyphs with another, coordinated set

The difference from ss01–ss20 is scope: salt targets individual glyphs, while ss01–ss20 target a set of glyphs together.

The rules are written with Lookup Type 1 for a one-to-one replacement, or Lookup Type 3 when the application should choose among candidates. This demo uses the candidate-choosing form.

Without rules
MN
With rules
MN
Compiling…