# TypographyFormat

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/documents/struct-typographyformat/

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

```rust
struct TypographyFormat
```

A per-property typography patch. `None` keeps the existing assignment.

Snapshots retain local choices independently, including explicit defaults
that override an inherited nondefault value. Resolved snapshots contain
every property and can be translated into OpenType feature records.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L16)

## Members

- [`annotation_alternates`](#struct_field-annotation_alternates)
- [`east_asian_expert_forms`](#struct_field-east_asian_expert_forms)
- [`east_asian_language`](#struct_field-east_asian_language)
- [`east_asian_widths`](#struct_field-east_asian_widths)
- [`standard_ligatures`](#struct_field-standard_ligatures)
- [`contextual_ligatures`](#struct_field-contextual_ligatures)
- [`discretionary_ligatures`](#struct_field-discretionary_ligatures)
- [`historical_ligatures`](#struct_field-historical_ligatures)
- [`standard_swashes`](#struct_field-standard_swashes)
- [`contextual_swashes`](#struct_field-contextual_swashes)
- [`contextual_alternates`](#struct_field-contextual_alternates)
- [`stylistic_alternates`](#struct_field-stylistic_alternates)
- [`stylistic_set1`](#struct_field-stylistic_set1)
- [`stylistic_set2`](#struct_field-stylistic_set2)
- [`stylistic_set3`](#struct_field-stylistic_set3)
- [`stylistic_set4`](#struct_field-stylistic_set4)
- [`stylistic_set5`](#struct_field-stylistic_set5)
- [`stylistic_set6`](#struct_field-stylistic_set6)
- [`stylistic_set7`](#struct_field-stylistic_set7)
- [`stylistic_set8`](#struct_field-stylistic_set8)
- [`stylistic_set9`](#struct_field-stylistic_set9)
- [`stylistic_set10`](#struct_field-stylistic_set10)
- [`stylistic_set11`](#struct_field-stylistic_set11)
- [`stylistic_set12`](#struct_field-stylistic_set12)
- [`stylistic_set13`](#struct_field-stylistic_set13)
- [`stylistic_set14`](#struct_field-stylistic_set14)
- [`stylistic_set15`](#struct_field-stylistic_set15)
- [`stylistic_set16`](#struct_field-stylistic_set16)
- [`stylistic_set17`](#struct_field-stylistic_set17)
- [`stylistic_set18`](#struct_field-stylistic_set18)
- [`stylistic_set19`](#struct_field-stylistic_set19)
- [`stylistic_set20`](#struct_field-stylistic_set20)
- [`capitals`](#struct_field-capitals)
- [`capital_spacing`](#struct_field-capital_spacing)
- [`kerning`](#struct_field-kerning)
- [`case_sensitive_forms`](#struct_field-case_sensitive_forms)
- [`historical_forms`](#struct_field-historical_forms)
- [`fraction`](#struct_field-fraction)
- [`numeral_style`](#struct_field-numeral_style)
- [`numeral_alignment`](#struct_field-numeral_alignment)
- [`slashed_zero`](#struct_field-slashed_zero)
- [`mathematical_greek`](#struct_field-mathematical_greek)
- [`variants`](#struct_field-variants)
- [`from_object`](#function-from_object)
- [`effective`](#function-effective)
- [`is_empty`](#function-is_empty)
- [`is_default`](#function-is_default)
- [`overlay`](#function-overlay)
- [`apply_to`](#function-apply_to)
- [`to_font_features`](#function-to_font_features)

<a id="struct_field-annotation_alternates"></a>

### annotation_alternates

```rust
annotation_alternates: Option<i32>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L17)

<a id="struct_field-east_asian_expert_forms"></a>

### east_asian_expert_forms

```rust
east_asian_expert_forms: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L18)

<a id="struct_field-east_asian_language"></a>

### east_asian_language

```rust
east_asian_language: Option<ferroui_base::media::FontEastAsianLanguage>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L19)

<a id="struct_field-east_asian_widths"></a>

### east_asian_widths

```rust
east_asian_widths: Option<ferroui_base::media::FontEastAsianWidths>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L20)

<a id="struct_field-standard_ligatures"></a>

### standard_ligatures

```rust
standard_ligatures: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L21)

<a id="struct_field-contextual_ligatures"></a>

### contextual_ligatures

```rust
contextual_ligatures: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L22)

<a id="struct_field-discretionary_ligatures"></a>

### discretionary_ligatures

```rust
discretionary_ligatures: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L23)

<a id="struct_field-historical_ligatures"></a>

### historical_ligatures

```rust
historical_ligatures: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L24)

<a id="struct_field-standard_swashes"></a>

### standard_swashes

```rust
standard_swashes: Option<i32>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L25)

<a id="struct_field-contextual_swashes"></a>

### contextual_swashes

```rust
contextual_swashes: Option<i32>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L26)

<a id="struct_field-contextual_alternates"></a>

### contextual_alternates

```rust
contextual_alternates: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L27)

<a id="struct_field-stylistic_alternates"></a>

### stylistic_alternates

```rust
stylistic_alternates: Option<i32>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L28)

<a id="struct_field-stylistic_set1"></a>

### stylistic_set1

```rust
stylistic_set1: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L29)

<a id="struct_field-stylistic_set2"></a>

### stylistic_set2

```rust
stylistic_set2: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L30)

<a id="struct_field-stylistic_set3"></a>

### stylistic_set3

```rust
stylistic_set3: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L31)

<a id="struct_field-stylistic_set4"></a>

### stylistic_set4

```rust
stylistic_set4: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L32)

<a id="struct_field-stylistic_set5"></a>

### stylistic_set5

```rust
stylistic_set5: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L33)

<a id="struct_field-stylistic_set6"></a>

### stylistic_set6

```rust
stylistic_set6: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L34)

<a id="struct_field-stylistic_set7"></a>

### stylistic_set7

```rust
stylistic_set7: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L35)

<a id="struct_field-stylistic_set8"></a>

### stylistic_set8

```rust
stylistic_set8: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L36)

<a id="struct_field-stylistic_set9"></a>

### stylistic_set9

```rust
stylistic_set9: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L37)

<a id="struct_field-stylistic_set10"></a>

### stylistic_set10

```rust
stylistic_set10: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L38)

<a id="struct_field-stylistic_set11"></a>

### stylistic_set11

```rust
stylistic_set11: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L39)

<a id="struct_field-stylistic_set12"></a>

### stylistic_set12

```rust
stylistic_set12: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L40)

<a id="struct_field-stylistic_set13"></a>

### stylistic_set13

```rust
stylistic_set13: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L41)

<a id="struct_field-stylistic_set14"></a>

### stylistic_set14

```rust
stylistic_set14: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L42)

<a id="struct_field-stylistic_set15"></a>

### stylistic_set15

```rust
stylistic_set15: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L43)

<a id="struct_field-stylistic_set16"></a>

### stylistic_set16

```rust
stylistic_set16: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L44)

<a id="struct_field-stylistic_set17"></a>

### stylistic_set17

```rust
stylistic_set17: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L45)

<a id="struct_field-stylistic_set18"></a>

### stylistic_set18

```rust
stylistic_set18: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L46)

<a id="struct_field-stylistic_set19"></a>

### stylistic_set19

```rust
stylistic_set19: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L47)

<a id="struct_field-stylistic_set20"></a>

### stylistic_set20

```rust
stylistic_set20: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L48)

<a id="struct_field-capitals"></a>

### capitals

```rust
capitals: Option<ferroui_base::media::FontCapitals>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L49)

<a id="struct_field-capital_spacing"></a>

### capital_spacing

```rust
capital_spacing: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L50)

<a id="struct_field-kerning"></a>

### kerning

```rust
kerning: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L51)

<a id="struct_field-case_sensitive_forms"></a>

### case_sensitive_forms

```rust
case_sensitive_forms: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L52)

<a id="struct_field-historical_forms"></a>

### historical_forms

```rust
historical_forms: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L53)

<a id="struct_field-fraction"></a>

### fraction

```rust
fraction: Option<ferroui_base::media::FontFraction>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L54)

<a id="struct_field-numeral_style"></a>

### numeral_style

```rust
numeral_style: Option<ferroui_base::media::FontNumeralStyle>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L55)

<a id="struct_field-numeral_alignment"></a>

### numeral_alignment

```rust
numeral_alignment: Option<ferroui_base::media::FontNumeralAlignment>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L56)

<a id="struct_field-slashed_zero"></a>

### slashed_zero

```rust
slashed_zero: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L57)

<a id="struct_field-mathematical_greek"></a>

### mathematical_greek

```rust
mathematical_greek: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L58)

<a id="struct_field-variants"></a>

### variants

```rust
variants: Option<ferroui_base::media::FontVariants>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L59)

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

### from_object

```rust
fn from_object(element: &FerroObject) -> Self
```

Captures assignments without flattening inherited choices.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L64)

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

### effective

```rust
fn effective(element: &FerroObject) -> Self
```

Captures every current inherited or assigned value.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L121)

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

### is_empty

```rust
fn is_empty(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L169)

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

### is_default

```rust
fn is_default(self: &Self) -> bool
```

Whether the resolved values match the standard property defaults.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L216)

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

### overlay

```rust
fn overlay(self: &Self, patch: &Self) -> Self
```

Replaces only the individual values present in `patch`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L272)

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

### apply_to

```rust
fn apply_to(self: &Self, element: &FerroObject)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L324)

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

### to_font_features

```rust
fn to_font_features(self: &Self) -> FontFeatureCollection
```

Generates feature tags/parameters, leaving font support to the shaper.
Selectors preserve their signed parameter values; the shaping backend
applies the same bit representation used by raw font features.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/typography_format.rs#L505)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`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/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`

## Availability

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