Expand description
Substitution subtables.
Each kind serves the original format and its extended counterpart, which differ only in the widths of glyph IDs and offsets.
StructsΒ§
- Alternate
Subst1 π - Alternate substitution, chosen by the feature value.
- Ligature π
- A ligature: its glyph and its components after the first, whose glyph
IDs are
Wbytes. - Ligature
Set π - The ligatures of a ligature set, read on demand. Its offsets and glyph
IDs are
Wbytes. - Ligature
Subst1 π - Ligature substitution.
- Multiple
Subst1 π - Multiple substitution: one glyph into a sequence.
- Reverse
Chain πSubst1 - Reverse chaining single substitution.
- Single
Subst1 π - Single substitution by a fixed delta, wrapping within the glyph ID width.
- Single
Subst2 π - Single substitution from an array of substitutes.
ConstantsΒ§
- NARROW π
- The width of a glyph ID in the original formats.
- WIDE π
- The width of a glyph ID, and of a child offset, in the extended formats.
FunctionsΒ§
- apply_
alternate_ πset - apply_
ligature π - apply_
ligature_ πset - Applies the first ligature of
setthat matches. - collect_
seconds π - The digest of every ligatureβs second glyph, or a full digest if a ligature has none. Nested walks share the fontβs preprocessing allowance.
- counted_
glyphs π - A count of 16 bits followed by that many glyph IDs of
widthbytes, as in a sequence or alternate set. - covered_
at π - Whether coverage
indexofcoveragesexists and covers the glyph. - ligature_
would_ πapply - set_
would_ πapply