Skip to main content

FontSource

Trait FontSource 

Source
pub trait FontSource:
    Send
    + Sync
    + Any {
    // Required method
    fn load(&self) -> Option<Font>;
}
Expand description

Serves a font on-demand.

Required Methods§

Source

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

Try to load the font.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl FontSource for Font

Source§

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

Implementors§