# ferroui_pretext_media

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-pretext-media/

**module** · [`ferroui-pretext-media`](/docs/0.5.0/api/ferroui-pretext-media/) · v0.5.0

```rust
module ferroui_pretext_media
```

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

Call [`create_layout`](/docs/0.5.0/api/ferroui-pretext-media/function-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`](/docs/0.5.0/api/ferroui-pretext-media/struct-ferroshapedtext/) with native glyph runs. Glyph positions
use baseline-relative device-independent units; clusters use UTF-16 units.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Media/lib.rs#L1)

## Contents

- [`FerroShapedText`](/docs/0.5.0/api/ferroui-pretext-media/struct-ferroshapedtext/) — struct
- [`create_layout`](/docs/0.5.0/api/ferroui-pretext-media/function-create_layout/) — function
- [`FerroTextMeasurerFactory`](/docs/0.5.0/api/ferroui-pretext-media/struct-ferrotextmeasurerfactory/) — struct
- [`FerroTextService`](/docs/0.5.0/api/ferroui-pretext-media/struct-ferrotextservice/) — struct

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
