pub trait FontLoader {
// Required method
fn load(&mut self, req: &FontRequest) -> Option<FontInfo>;
}Expand description
Loads fonts for the engine (LuaTeX’s define_font callback).
Required Methods§
Sourcefn load(&mut self, req: &FontRequest) -> Option<FontInfo>
fn load(&mut self, req: &FontRequest) -> Option<FontInfo>
Loads the font, or returns None if it cannot be found.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".