Skip to main content

FontSource

Trait FontSource 

Source
pub trait FontSource {
    // Required method
    fn find(&self, q: &FontQuery<'_>) -> Option<(Vec<u8>, u32)>;
}
Expand description

where substitutes for fonts that are not embedded come from: a TrueType, OpenType or Type 1 file and the face in it

Required Methods§

Source

fn find(&self, q: &FontQuery<'_>) -> Option<(Vec<u8>, u32)>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§