Skip to main content

Module shaper

Module shaper 

Source
Expand description

Shaper: a text engine of our own, so a host without one can still be told where every glyph lands.

Structsยง

Placing ๐Ÿ”’
The pen walking a shaped run, and the cluster it is in the middle of.
Shaped ๐Ÿ”’
One glyph as the shaper reports it, in font units.
Shaper
One typeface, shaped by harfrust and broken into rows by the desktop engineโ€™s rules โ€” the whole of what TextLayout asks of a host, with no toolkit under it.

Constantsยง

UNKNOWN ๐Ÿ”’
The character a shaper reports for a byte it cannot read back.

Functionsยง

place ๐Ÿ”’
The shaped run placed along one endless row, one glyph per character: a cluster the shaper folded into fewer glyphs than it has characters is padded out with zero-advance continuations, so cursor arithmetic above this can count characters.