# ScriptListTable

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

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

```rust
struct ScriptListTable
```

Reads the script tags of the `GSUB` and `GPOS` script lists.

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

## Members

- [`try_read_script_tags`](#function-try_read_script_tags)

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

### try_read_script_tags

```rust
fn try_read_script_tags(font: &dyn IFontMemory, script_tags: &mut HashSet<OpenTypeTag>) -> bool
```

Adds the script tags of both layout tables to `script_tags`.

Returns `false` when a present table is malformed (the shaping
capability is then unknown); tags read before the failure stay in the set.

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

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