Skip to main content

Module gsub

Module gsub 

Source
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Β§

AlternateSubst1 πŸ”’
Alternate substitution, chosen by the feature value.
Ligature πŸ”’
A ligature: its glyph and its components after the first, whose glyph IDs are W bytes.
LigatureSet πŸ”’
The ligatures of a ligature set, read on demand. Its offsets and glyph IDs are W bytes.
LigatureSubst1 πŸ”’
Ligature substitution.
MultipleSubst1 πŸ”’
Multiple substitution: one glyph into a sequence.
ReverseChainSubst1 πŸ”’
Reverse chaining single substitution.
SingleSubst1 πŸ”’
Single substitution by a fixed delta, wrapping within the glyph ID width.
SingleSubst2 πŸ”’
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 set that 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 width bytes, as in a sequence or alternate set.
covered_at πŸ”’
Whether coverage index of coverages exists and covers the glyph.
ligature_would_apply πŸ”’
set_would_apply πŸ”’