Skip to main content

FontLoader

Trait FontLoader 

Source
pub trait FontLoader {
    // Required method
    fn load(&self, store: &Store, font: &Object) -> Option<Arc<dyn Font>>;
}
Expand description

Loads fonts from font dictionaries; implementations cache them.

Required Methods§

Source

fn load(&self, store: &Store, font: &Object) -> Option<Arc<dyn Font>>

The font for font (a reference to, or a, font dictionary).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§