# NameTable

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

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

```rust
struct NameTable
```

The `name` (naming) table.

Cultures are identified by their Windows language id (LCID), as stored in
the table's Windows-platform records.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/name/name_table.rs#L22)

## Members

- [`TABLE_NAME`](#assoc_const-table_name)
- [`TAG`](#assoc_const-tag)
- [`id`](#function-id)
- [`font_name`](#function-font_name)
- [`font_family_name`](#function-font_family_name)
- [`font_sub_family_name`](#function-font_sub_family_name)
- [`get_name_by_id`](#function-get_name_by_id)
- [`get_name_by_id_u16`](#function-get_name_by_id_u16)
- [`load`](#function-load)
- [`iter`](#function-iter)

<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/name/name_table.rs#L29)

<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/name/name_table.rs#L30)

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

### id

```rust
fn id(self: &Self, culture: u16) -> String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/name/name_table.rs#L36)

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

### font_name

```rust
fn font_name(self: &Self, culture: u16) -> String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/name/name_table.rs#L40)

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

### font_family_name

```rust
fn font_family_name(self: &Self, culture: u16) -> String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/name/name_table.rs#L44)

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

### font_sub_family_name

```rust
fn font_sub_family_name(self: &Self, culture: u16) -> String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/name/name_table.rs#L60)

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

### get_name_by_id

```rust
fn get_name_by_id(self: &Self, culture: u16, name_id: KnownNameIds) -> String
```

The name with the given id for the culture.

Falls back to the US English Windows record, then the first Windows
record, then the first record of any platform; the empty string when
the table has no record with that id.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/name/name_table.rs#L69)

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

### get_name_by_id_u16

```rust
fn get_name_by_id_u16(self: &Self, culture: u16, name_id: u16) -> String
```

`get_name_by_id` for a raw name id.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/name/name_table.rs#L111)

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

### load

```rust
fn load(font: &dyn IFontMemory) -> Option<NameTable>
```

Loads the table; `None` when the font has no `name` table or the table
is malformed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/name/name_table.rs#L117)

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

### iter

```rust
fn iter(self: &Self) -> std::slice::Iter<'_, NameRecord>
```

Enumerates the records in table order.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/name/name_table.rs#L169)

## Trait implementations

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

## Availability

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