# LocaTable

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

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

```rust
struct LocaTable
```

The `loca` (index to location) table: the offsets of the glyphs in the
`glyf` table.

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

## Members

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

<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/loca_table.rs#L18)

<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/loca_table.rs#L19)

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

### glyph_count

```rust
fn glyph_count(self: &Self) -> i32
```



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

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

### load

```rust
fn load(font: &dyn IFontMemory, head: &HeadTable, maxp: &MaxpTable) -> Option<LocaTable>
```

Loads the table; `None` when the font has no `loca` table.

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

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

### try_get_offsets

```rust
fn try_get_offsets(self: &Self, glyph_index: i32) -> Option<(i32, i32)>
```

The `(start, end)` offsets of the glyph's data in the `glyf` table;
`None` when the glyph index is out of range.

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

## 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`

## Availability

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