FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PretextFontDescriptor

    struct · ferroui-pretext-contracts · v0.5.0

    struct PretextFontDescriptor
    

    The CSS-like font subset accepted by text preparation backends.

    View source

    Members

    size

    size: f64
    

    Source

    primary_family

    primary_family: String
    

    Source

    weight

    weight: i32
    

    Source

    italic

    italic: bool
    

    Source

    new

    fn new(size: f64, primary_family: impl Into<String>, weight: i32, italic: bool) -> Self
    

    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
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Default

    Availability

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