Skip to main content

FontLoader

Trait FontLoader 

Source
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§

Source

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".

Implementors§