# FeatureListTable

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

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

```rust
struct FeatureListTable
```

The feature tags of a `GSUB` or `GPOS` table.

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

## Members

- [`features`](#function-features)
- [`load_gsub`](#function-load_gsub)
- [`load_gpos`](#function-load_gpos)

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

### features

```rust
fn features(self: &Self) -> &[OpenTypeTag]
```

The distinct feature tags, in table order.

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

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

### load_gsub

```rust
fn load_gsub(font: &dyn IFontMemory) -> Result<Option<FeatureListTable>, FontTableError>
```

Loads the features of the `GSUB` table.

`Ok(None)` when the font has no `GSUB` table; `Err` when it is malformed.

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

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

### load_gpos

```rust
fn load_gpos(font: &dyn IFontMemory) -> Result<Option<FeatureListTable>, FontTableError>
```

Loads the features of the `GPOS` table.

`Ok(None)` when the font has no `GPOS` table; `Err` when it is malformed.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`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`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`

## Availability

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