dlig — Discretionary Ligatures
dlig (Discretionary Ligatures) gathers the ligatures used only when the reader asks for them.
The ct and st ligatures are examples. Anything can go in it, so long as the font’s maker judges it a ligature for special effect.
Ligatures commonly found in dlig gives a rough guide.
Example
Section titled “Example”Without dlig
perfect
With dlig
perfect
.fea source
Compiling…
Without dlig
株式会社
With dlig
株式会社
.fea source
Compiling…
Choosing among the ligature features
Section titled “Choosing among the ligature features”Five features form ligatures, dlig among them.
| Feature | Purpose |
|---|---|
rlig |
Ligatures required for correct display of a script. Always applied |
liga |
Ligatures in common use. On by default |
clig |
Ligatures recommended only in a specific context. On by default |
dlig |
Ligatures used for special effect, at the user’s preference. Off by default |
hlig |
Ligatures once in common use that now appear anachronistic. Off by default |
dlig is off by default. It applies only once the user asks for it.
hlig is off by default too, but it covers ligatures from historical orthography. Ligatures used for decoration go in dlig.
Writing it in a feature file
Section titled “Writing it in a feature file”The rules are written with Lookup Type 4.
Without rules
The perfect best
With rulesThe perfect best
Compiling…