tinymist_project::world::font

Trait FontLoader

pub trait FontLoader {
    // Required method
    fn load(&mut self) -> Option<Font>;
}
Expand description

A FontLoader helps load a font from somewhere.

Required Methods§

fn load(&mut self) -> Option<Font>

Implementors§

§

impl FontLoader for BufferFontLoader

§

impl FontLoader for WebFontLoader

§

impl<R> FontLoader for LazyBufferFontLoader<R>
where R: ReadAllOnce,