FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FontFamilyLoader

    struct · ferroui-base · v0.5.0

    struct FontFamilyLoader
    

    Finds the font assets of a font family source.

    View source

    Members

    load_font_assets

    fn load_font_assets(source: &url::Url) -> Vec<url::Url>
    

    Loads all font assets that belong to the specified source: a single font file, a file name pattern (MyFont*.ttf) or a location holding font files.

    Panics when no asset loader is registered with the locator.

    Source

    is_font_source

    fn is_font_source(uri: &url::Url) -> bool
    

    Whether the URL (without its query) names a font file.

    Source

    is_font_file

    fn is_font_file(file_path: &str) -> bool
    

    Whether the path has a font file extension (.ttf, .otf, .ttc).

    Source

    Trait implementations

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

    Availability

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