pub trait FontLoader {
// Required method
fn load(&self, spec: &FontSpec) -> Result<FontData, FontError>;
}Expand description
Loads font faces for the engine, the only font trait a host implements.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".