# ITextShaperTypeface

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/trait-itextshapertypeface/

**trait** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
trait ITextShaperTypeface
```

Represents a typeface as prepared by the text shaper backend (for example
the shaper's own font object created from a glyph typeface).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/i_text_shaper_typeface.rs#L3)

## Members

- [`dispose`](#function-dispose)
- [`as_any`](#function-as_any)

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

### dispose

```rust
fn dispose(self: &Self)
```

Releases the shaper's font object (C# `IDisposable.Dispose`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/i_text_shaper_typeface.rs#L5)

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

### as_any

```rust
fn as_any(self: &Self) -> &dyn std::any::Any
```

Lets the backend recover its concrete type.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/i_text_shaper_typeface.rs#L8)

## Availability

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