pub trait SystemFontProvider {
// Required methods
fn font_info(&self) -> SystemFontInfo;
fn rasterize(&self, key: GlyphKey) -> Option<RasterizedGlyph>;
}Expand description
Abstraction for native OS and deterministic glyph rasterization providers.
Required Methods§
Sourcefn font_info(&self) -> SystemFontInfo
fn font_info(&self) -> SystemFontInfo
Sourcefn rasterize(&self, key: GlyphKey) -> Option<RasterizedGlyph>
fn rasterize(&self, key: GlyphKey) -> Option<RasterizedGlyph>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl SystemFontProvider for NativeSystemFont
SystemFontProvider implementation delegating to OS native APIs with deterministic fallback.