Skip to main content

Crate ferroui_pretext

Crate ferroui_pretext 

Source
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§

DelegateTextMeasurerFactory
Adapter for renderers that already expose a string/font measurement function.
LayoutCursor
A position in prepared text, independent of UTF-8 and UTF-16 encoding.
LayoutLine
LayoutLineRange
LayoutLinesResult
LayoutResult
LineStats
PrepareOptions
PrepareProfile
PreparedLineChunk
PreparedRichInline
Immutable, reusable rich inline preparation. Keep this value alive while retaining any geometry-only ranges which refer to its source item indices.
PreparedShapedText
A prepared text object and its shaping snapshot. It retains its backend, so clearing or replacing an engine’s backend cannot invalidate retained lines.
PreparedText
Immutable metrics required by allocation-free line walking.
PreparedTextWithSegments
Prepared metrics with source segments for lazy text and glyph materialization.
PretextFontDescriptor
The CSS-like font subset accepted by text preparation backends.
PretextFontParser
PretextLayout
An isolated preparation session. Replacing a backend affects subsequent preparation; already prepared metrics and shaped objects remain usable.
PretextShapeOptions
A value snapshot: changing the caller’s options cannot mutate cached output.
PretextShapedFontRun
PretextShapedGlyph
PretextShapedRun
Immutable positioned glyphs and the font runs that produced them.
RichInlineCursor
The item index addresses the prepared flow; fragment item indices address the original source item list, which may contain empty or whitespace-only items.
RichInlineFragment
RichInlineFragmentRange
RichInlineItem
RichInlineLine
RichInlineLineRange
RichInlineStats
ShapedLayoutLine
ShapedRichInlineFragment
ShapedRichInlineLine

Enums§

PretextError
A recoverable backend or input error.
PretextGlyphRunKind
PretextTextDirection
RichInlineBreakMode
SegmentBreakKind
WhiteSpaceMode
WordBreakMode

Traits§

IPretextTextMeasurer
Measures an entire string in one fixed font, including contextual advances.
IPretextTextMeasurerFactory
An explicitly registered, platform-independent measurement backend.
IPretextTextShaper
IPretextTextShaperFactory