Skip to main content

Module build

Module build 

Source
Expand description

Reading a lookup and deriving the data its subtables apply with.

Structsยง

BuiltSubtable ๐Ÿ”’
A subtable together with what its lookup needs to know about it.
Source ๐Ÿ”’
Where a subtable is and how to cache it.

Enumsยง

BuildError ๐Ÿ”’
A malformed subtable is skipped; exhausted preprocessing aborts its lookup.

Constantsยง

MAX_CACHED_SUBTABLES ๐Ÿ”’
Subtables past this many in a lookup get no glyph lookup caches.
MIN_CACHED_COVERAGE_COST ๐Ÿ”’
Coverages of fewer than 8 glyphs or ranges get no cache: searching them costs about as much as a cache hit, and a cache takes 512 bytes.

Functionsยง

build_lookup ๐Ÿ”’
Reads lookup index of GSUB, or GPOS if is_subst is false.
build_lookup_at ๐Ÿ”’
Reads the lookup at offset in a GSUB (is_subst) or GPOS table.
is_extension ๐Ÿ”’
is_reversed ๐Ÿ”’
Whether a GSUB lookup is a reverse chain, looking through an extension.
lookup_count ๐Ÿ”’
The number of lookups in GSUB, or GPOS if is_subst is false.
lookup_location ๐Ÿ”’
The data of a lookup list and the offset of lookup index in it.