ferroui_pretext_media/lib.rs
1//! Native FerroUI font fallback, Unicode bidi and text shaping for Pretext.
2//!
3//! Call [`create_layout`] after configuring the application's FerroUI font and
4//! shaping backends. The adapter uses the same shapeable-character selection,
5//! bidi algorithm and platform shaper as the framework's text formatter.
6//!
7//! For direct drawing, [`FerroTextService::shape_native`] retains the actual font
8//! faces and returns [`FerroShapedText`] with native glyph runs. Glyph positions
9//! use baseline-relative device-independent units; clusters use UTF-16 units.
10
11#![forbid(unsafe_code)]
12
13mod ferro_shaped_text;
14mod ferro_text_measurer_factory;
15
16pub use ferro_shaped_text::FerroShapedText;
17pub use ferro_text_measurer_factory::{create_layout, FerroTextMeasurerFactory, FerroTextService};
18
19#[cfg(test)]
20mod tests;