# FerroShapedText

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

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

```rust
struct FerroShapedText
```

Positioned portable glyph data together with its actual native font faces.

Native runs are already in visual order and have their horizontal baseline
origins set. Keeping this value keeps their glyph typefaces alive.

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

## Members

- [`shaped_run`](#function-shaped_run)
- [`glyph_runs`](#function-glyph_runs)
- [`into_shaped_run`](#function-into_shaped_run)
- [`draw`](#function-draw)

<a id="function-shaped_run"></a>

### shaped_run

```rust
fn shaped_run(self: &Self) -> &PretextShapedRun
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Media/ferro_shaped_text.rs#L18)

<a id="function-glyph_runs"></a>

### glyph_runs

```rust
fn glyph_runs(self: &Self) -> &[Rc<GlyphRun>]
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Media/ferro_shaped_text.rs#L22)

<a id="function-into_shaped_run"></a>

### into_shaped_run

```rust
fn into_shaped_run(self: Self) -> PretextShapedRun
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Media/ferro_shaped_text.rs#L26)

<a id="function-draw"></a>

### draw

```rust
fn draw(self: &Self, sink: &mut dyn ITextDrawingSink, foreground: Option<&Rc<dyn IBrush>>, baseline_origin: Point)
```

Draws the retained glyph runs at the requested baseline origin.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Media/ferro_shaped_text.rs#L31)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`

## Availability

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