FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PretextFontParser

    struct · ferroui-pretext-contracts · v0.5.0

    struct PretextFontParser
    

    View source

    Members

    parse

    fn parse(font: &str) -> PretextFontDescriptor
    

    Parses the source's permissive CSS subset; absent pixel sizes use defaults.

    Source

    map_generic_family

    fn map_generic_family<'a>(primary_family: &'a str, sans_serif_fallback: &'a str, serif_fallback: &'a str, monospace_fallback: &'a str) -> &'a str
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any

    Availability

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