Skip to main content

Crate ferroui_pretext_media

Crate ferroui_pretext_media 

Source
Expand description

Native FerroUI font fallback, Unicode bidi and text shaping for Pretext.

Call create_layout after configuring the application’s FerroUI font and shaping backends. The adapter uses the same shapeable-character selection, bidi algorithm and platform shaper as the framework’s text formatter.

For direct drawing, FerroTextService::shape_native retains the actual font faces and returns FerroShapedText with native glyph runs. Glyph positions use baseline-relative device-independent units; clusters use UTF-16 units.

Structs§

FerroShapedText
Positioned portable glyph data together with its actual native font faces.
FerroTextMeasurerFactory
Connects Pretext to the application’s configured FerroUI text services.
FerroTextService
A fixed-font native measurement and glyph-shaping service.

Functions§

create_layout
Creates a Pretext engine using the current FerroUI text services.