Skip to main content

Crate ferroui_pretext_contracts

Crate ferroui_pretext_contracts 

Source
Expand description

Backend contracts for reusable text preparation and glyph-run output.

Layout cursors count graphemes; glyph clusters count UTF-16 code units. Implementations use ordinary Rust ownership instead of explicit disposal.

Structs§

DelegateTextMeasurerFactory
Adapter for renderers that already expose a string/font measurement function.
PretextFontDescriptor
The CSS-like font subset accepted by text preparation backends.
PretextFontParser
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.

Enums§

PretextError
A recoverable backend or input error.
PretextGlyphRunKind
PretextTextDirection

Traits§

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