Skip to main content

Module engine

Module engine 

Source
Expand description

Zenith-owned text-layout types and the TextLayoutEngine trait.

No third-party shaping or font types appear here. All shaping engines implement TextLayoutEngine and hide their dependencies behind it.

Structs§

FallbackResult
Result of fallback shaping: the shaped runs plus any characters that NO registered face (primary or fallback) could supply a glyph for.
PositionedGlyph
One positioned glyph, baseline-relative, measured from the run origin in pixels.
ShapeRequest
A request to shape a run of text into positioned glyphs.
ZenithGlyphRun
A shaped run of text in a single resolved font.

Enums§

TextDirection
Base writing direction for a shaping request.

Traits§

TextLayoutEngine
Trait implemented by every shaping engine.