TypographyFormat
struct · ferroui-controls · v0.5.0
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.
Members
annotation_alternateseast_asian_expert_formseast_asian_languageeast_asian_widthsstandard_ligaturescontextual_ligaturesdiscretionary_ligatureshistorical_ligaturesstandard_swashescontextual_swashescontextual_alternatesstylistic_alternatesstylistic_set1stylistic_set2stylistic_set3stylistic_set4stylistic_set5stylistic_set6stylistic_set7stylistic_set8stylistic_set9stylistic_set10stylistic_set11stylistic_set12stylistic_set13stylistic_set14stylistic_set15stylistic_set16stylistic_set17stylistic_set18stylistic_set19stylistic_set20capitalscapital_spacingkerningcase_sensitive_formshistorical_formsfractionnumeral_stylenumeral_alignmentslashed_zeromathematical_greekvariantsfrom_objecteffectiveis_emptyis_defaultoverlayapply_toto_font_features
annotation_alternates
annotation_alternates: Option<i32>
east_asian_expert_forms
east_asian_expert_forms: Option<bool>
east_asian_language
east_asian_language: Option<ferroui_base::media::FontEastAsianLanguage>
east_asian_widths
east_asian_widths: Option<ferroui_base::media::FontEastAsianWidths>
standard_ligatures
standard_ligatures: Option<bool>
contextual_ligatures
contextual_ligatures: Option<bool>
discretionary_ligatures
discretionary_ligatures: Option<bool>
historical_ligatures
historical_ligatures: Option<bool>
standard_swashes
standard_swashes: Option<i32>
contextual_swashes
contextual_swashes: Option<i32>
contextual_alternates
contextual_alternates: Option<bool>
stylistic_alternates
stylistic_alternates: Option<i32>
stylistic_set1
stylistic_set1: Option<bool>
stylistic_set2
stylistic_set2: Option<bool>
stylistic_set3
stylistic_set3: Option<bool>
stylistic_set4
stylistic_set4: Option<bool>
stylistic_set5
stylistic_set5: Option<bool>
stylistic_set6
stylistic_set6: Option<bool>
stylistic_set7
stylistic_set7: Option<bool>
stylistic_set8
stylistic_set8: Option<bool>
stylistic_set9
stylistic_set9: Option<bool>
stylistic_set10
stylistic_set10: Option<bool>
stylistic_set11
stylistic_set11: Option<bool>
stylistic_set12
stylistic_set12: Option<bool>
stylistic_set13
stylistic_set13: Option<bool>
stylistic_set14
stylistic_set14: Option<bool>
stylistic_set15
stylistic_set15: Option<bool>
stylistic_set16
stylistic_set16: Option<bool>
stylistic_set17
stylistic_set17: Option<bool>
stylistic_set18
stylistic_set18: Option<bool>
stylistic_set19
stylistic_set19: Option<bool>
stylistic_set20
stylistic_set20: Option<bool>
capitals
capitals: Option<ferroui_base::media::FontCapitals>
capital_spacing
capital_spacing: Option<bool>
kerning
kerning: Option<bool>
case_sensitive_forms
case_sensitive_forms: Option<bool>
historical_forms
historical_forms: Option<bool>
fraction
fraction: Option<ferroui_base::media::FontFraction>
numeral_style
numeral_style: Option<ferroui_base::media::FontNumeralStyle>
numeral_alignment
numeral_alignment: Option<ferroui_base::media::FontNumeralAlignment>
slashed_zero
slashed_zero: Option<bool>
mathematical_greek
mathematical_greek: Option<bool>
variants
variants: Option<ferroui_base::media::FontVariants>
from_object
fn from_object(element: &FerroObject) -> Self
Captures assignments without flattening inherited choices.
effective
fn effective(element: &FerroObject) -> Self
Captures every current inherited or assigned value.
is_empty
fn is_empty(self: &Self) -> bool
is_default
fn is_default(self: &Self) -> bool
Whether the resolved values match the standard property defaults.
overlay
fn overlay(self: &Self, patch: &Self) -> Self
Replaces only the individual values present in patch.
apply_to
fn apply_to(self: &Self, element: &FerroObject)
to_font_features
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherCloneDebugDefaultStructuralPartialEqPartialEqEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.