BLLayoutEngine class

OpenType layout engine for GSUB and GPOS processing.

Parses GSUB/GPOS tables from font data and applies feature-based substitutions and positioning to glyph runs.

Constructors

BLLayoutEngine(ByteData _view, {required int gsubOffset, required int gsubLength, required int gposOffset, required int gposLength})

Properties

gposLookupCount → int
Number of parsed GPOS lookups.
no setter
gsubLookupCount → int
Number of parsed GSUB lookups.
no setter
hasGPOS → bool
Whether GPOS data is available.
no setter
hasGSUB → bool
Whether GSUB data is available.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

applyGPOS(List<int> glyphIds, {Set<String>? features}) → List<int>
Applies GPOS pair positioning to compute x-advance adjustments. Returns a list of x-advance adjustments (same length as glyphIds).
applyGPOSAdjustments(List<int> glyphIds, {Set<String>? features}) → List<BLGlyphAdjustment>
Aplica GPOS e devolve o ajuste completo de cada glifo, em unidades de fonte.
applyGSUB(List<int> glyphIds, {Set<String>? features}) → List<int>
Applies GSUB features to glyphIds in-place (may change length for ligatures). Returns the new glyph list.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited