# IFontMemory

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

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

```rust
trait IFontMemory
```

Represents a memory manager for font data.

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

## Members

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

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

### try_get_table

```rust
fn try_get_table(self: &Self, tag: OpenTypeTag) -> Option<ReadOnlyMemory<u8>>
```

Attempts to retrieve the memory region corresponding to the specified
OpenType table tag.

Returns `None` when the table is not present.

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

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

### dispose

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

Releases the font data (C# `IDisposable.Dispose`).

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

## Availability

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