FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FontVariation

    struct · ferroui-base · v0.5.0

    struct FontVariation
    

    A single variable-font axis setting in user-space coordinates, e.g. wght=650.

    View source

    Members

    tag

    tag: crate::media::fonts::OpenTypeTag
    

    The four-character axis tag (e.g. wght).

    Source

    value

    value: f64
    

    The axis value in user-space units (e.g. 650 for wght).

    Source

    new

    const fn new(tag: OpenTypeTag, value: f64) -> Self
    

    Creates an axis setting.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ResourceKeyObject
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ToString
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • PartialEq
    • Eq
    • Hash
    • Display

    Availability

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