Skip to main content

FontProvider

Type Alias FontProvider 

Source
pub type FontProvider = Arc<dyn Fn(&str) -> Option<Vec<u8>> + Send + Sync>;
Expand description

Font data provider: maps a font file name (e.g. “NimbusSans-Regular”) to raw .t1 bytes.

Used for environments without filesystem access (WASM) where fonts are embedded.

Aliased Type§

pub struct FontProvider { /* private fields */ }