FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    annotation_alternates

    annotation_alternates: Option<i32>
    

    Source

    east_asian_expert_forms

    east_asian_expert_forms: Option<bool>
    

    Source

    east_asian_language

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

    Source

    east_asian_widths

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

    Source

    standard_ligatures

    standard_ligatures: Option<bool>
    

    Source

    contextual_ligatures

    contextual_ligatures: Option<bool>
    

    Source

    discretionary_ligatures

    discretionary_ligatures: Option<bool>
    

    Source

    historical_ligatures

    historical_ligatures: Option<bool>
    

    Source

    standard_swashes

    standard_swashes: Option<i32>
    

    Source

    contextual_swashes

    contextual_swashes: Option<i32>
    

    Source

    contextual_alternates

    contextual_alternates: Option<bool>
    

    Source

    stylistic_alternates

    stylistic_alternates: Option<i32>
    

    Source

    stylistic_set1

    stylistic_set1: Option<bool>
    

    Source

    stylistic_set2

    stylistic_set2: Option<bool>
    

    Source

    stylistic_set3

    stylistic_set3: Option<bool>
    

    Source

    stylistic_set4

    stylistic_set4: Option<bool>
    

    Source

    stylistic_set5

    stylistic_set5: Option<bool>
    

    Source

    stylistic_set6

    stylistic_set6: Option<bool>
    

    Source

    stylistic_set7

    stylistic_set7: Option<bool>
    

    Source

    stylistic_set8

    stylistic_set8: Option<bool>
    

    Source

    stylistic_set9

    stylistic_set9: Option<bool>
    

    Source

    stylistic_set10

    stylistic_set10: Option<bool>
    

    Source

    stylistic_set11

    stylistic_set11: Option<bool>
    

    Source

    stylistic_set12

    stylistic_set12: Option<bool>
    

    Source

    stylistic_set13

    stylistic_set13: Option<bool>
    

    Source

    stylistic_set14

    stylistic_set14: Option<bool>
    

    Source

    stylistic_set15

    stylistic_set15: Option<bool>
    

    Source

    stylistic_set16

    stylistic_set16: Option<bool>
    

    Source

    stylistic_set17

    stylistic_set17: Option<bool>
    

    Source

    stylistic_set18

    stylistic_set18: Option<bool>
    

    Source

    stylistic_set19

    stylistic_set19: Option<bool>
    

    Source

    stylistic_set20

    stylistic_set20: Option<bool>
    

    Source

    capitals

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

    Source

    capital_spacing

    capital_spacing: Option<bool>
    

    Source

    kerning

    kerning: Option<bool>
    

    Source

    case_sensitive_forms

    case_sensitive_forms: Option<bool>
    

    Source

    historical_forms

    historical_forms: Option<bool>
    

    Source

    fraction

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

    Source

    numeral_style

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

    Source

    numeral_alignment

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

    Source

    slashed_zero

    slashed_zero: Option<bool>
    

    Source

    mathematical_greek

    mathematical_greek: Option<bool>
    

    Source

    variants

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

    Source

    from_object

    fn from_object(element: &FerroObject) -> Self
    

    Captures assignments without flattening inherited choices.

    Source

    effective

    fn effective(element: &FerroObject) -> Self
    

    Captures every current inherited or assigned value.

    Source

    is_empty

    fn is_empty(self: &Self) -> bool
    

    Source

    is_default

    fn is_default(self: &Self) -> bool
    

    Whether the resolved values match the standard property defaults.

    Source

    overlay

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

    Replaces only the individual values present in patch.

    Source

    apply_to

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

    Source

    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.

    Source

    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
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq
    • Eq

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.