Expand description
Prepare text once, then wrap, measure, stream or shape it many times.
Measurement and shaping backends belong to an explicit PretextLayout
instance. Prepared values retain their metrics when backend caches change.
The portable engine does not create threads, access files or read clocks.
Structs§
- Delegate
Text Measurer Factory - Adapter for renderers that already expose a string/font measurement function.
- Layout
Cursor - A position in prepared text, independent of UTF-8 and UTF-16 encoding.
- Layout
Line - Layout
Line Range - Layout
Lines Result - Layout
Result - Line
Stats - Prepare
Options - Prepare
Profile - Prepared
Line Chunk - Prepared
Rich Inline - Immutable, reusable rich inline preparation. Keep this value alive while retaining any geometry-only ranges which refer to its source item indices.
- Prepared
Shaped Text - A prepared text object and its shaping snapshot. It retains its backend, so clearing or replacing an engine’s backend cannot invalidate retained lines.
- Prepared
Text - Immutable metrics required by allocation-free line walking.
- Prepared
Text With Segments - Prepared metrics with source segments for lazy text and glyph materialization.
- Pretext
Font Descriptor - The CSS-like font subset accepted by text preparation backends.
- Pretext
Font Parser - Pretext
Layout - An isolated preparation session. Replacing a backend affects subsequent preparation; already prepared metrics and shaped objects remain usable.
- Pretext
Shape Options - A value snapshot: changing the caller’s options cannot mutate cached output.
- Pretext
Shaped Font Run - Pretext
Shaped Glyph - Pretext
Shaped Run - Immutable positioned glyphs and the font runs that produced them.
- Rich
Inline Cursor - The item index addresses the prepared flow; fragment item indices address the original source item list, which may contain empty or whitespace-only items.
- Rich
Inline Fragment - Rich
Inline Fragment Range - Rich
Inline Item - Rich
Inline Line - Rich
Inline Line Range - Rich
Inline Stats - Shaped
Layout Line - Shaped
Rich Inline Fragment - Shaped
Rich Inline Line
Enums§
- Pretext
Error - A recoverable backend or input error.
- Pretext
Glyph RunKind - Pretext
Text Direction - Rich
Inline Break Mode - Segment
Break Kind - White
Space Mode - Word
Break Mode
Traits§
- IPretext
Text Measurer - Measures an entire string in one fixed font, including contextual advances.
- IPretext
Text Measurer Factory - An explicitly registered, platform-independent measurement backend.
- IPretext
Text Shaper - IPretext
Text Shaper Factory