FontFamilyLoader
struct · ferroui-base · v0.5.0
struct FontFamilyLoader
Finds the font assets of a font family 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.
is_font_source
fn is_font_source(uri: &url::Url) -> bool
Whether the URL (without its query) names a font file.
is_font_file
fn is_font_file(file_path: &str) -> bool
Whether the path has a font file extension (.ttf, .otf, .ttc).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.