pub trait FontSource {
// Required methods
fn family(&mut self, name: &str) -> Vec<Font>;
fn face_for_codepoint(
&mut self,
codepoint: char,
attrs: FontAttrs,
) -> Option<Font>;
}Expand description
FontSource locates fonts that are not already registered.
A source may consult installed fonts, downloaded assets, or another
host-owned repository. FontCollection consults sources in registration
order.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".