# CmapTable

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/fonts/tables/cmap/struct-cmaptable/

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

```rust
struct CmapTable
```

The `cmap` (character to glyph index mapping) table loader.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/cmap/cmap_table.rs#L14)

## Members

- [`TABLE_NAME`](#assoc_const-table_name)
- [`TAG`](#assoc_const-tag)
- [`load`](#function-load)

<a id="assoc_const-table_name"></a>

### TABLE_NAME

```rust
const TABLE_NAME: &'static str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/cmap/cmap_table.rs#L17)

<a id="assoc_const-tag"></a>

### TAG

```rust
const TAG: OpenTypeTag
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/cmap/cmap_table.rs#L18)

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

### load

```rust
fn load(font: &dyn IFontMemory) -> Result<CharacterToGlyphMap, FontTableError>
```

Loads the best character map of the font.

`Err` when the font has no `cmap` table, the table is malformed or it
has no format 12, 4 or 13 subtable.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/cmap/cmap_table.rs#L24)

## Trait implementations

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

## Availability

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