ShapedRun
Mojo struct 🡭
ShapedRun
@memory_only
struct ShapedRunA glyph sequence after GSUB substitution. clusters[i] is how many of the input glyphs glyphs[i] stands for – 1 for a glyph left alone or substituted one for one, 3 for an “ffi” ligature – so a caller can walk back to the characters each output glyph came from. The two lists are the same length, and the clusters sum to the input length. changed is False when no lookup fired, which lets a caller skip that walk entirely.
Fields
- glyphs (
List[Int]) - clusters (
List[Int]) - changed (
Bool)
Implemented traits
AnyType, Deinitable, Movable
Methods
__init__
fn def __init__(out self, var glyphs: List[Int], var clusters: List[Int], changed: Bool)Args:
- glyphs (
List[Int]) - clusters (
List[Int]) - changed (
Bool) - self (
Self)
Returns:
Self