Skip to main content

FontLoader

Trait FontLoader 

Source
pub trait FontLoader {
    // Required method
    fn load_font(&self, query: &FontQuery) -> Result<FontData, FontError>;
}
Expand description

Font loading half of a font system.

Required Methods§

Source

fn load_font(&self, query: &FontQuery) -> Result<FontData, FontError>

Load font data that matches the query.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> FontLoader for &T
where T: FontLoader,

Implementors§