Skip to main content

FontData

Type Alias FontData 

Source
pub type FontData = Arc<dyn AsRef<[u8]> + Send + Sync>;
Expand description

FontData is shared, immutable font-file storage supplied by the host.

It may wrap owned bytes or memory-mapped data and must remain readable for the lifetime of every Font created from it.

Aliased Typeยง

pub struct FontData { /* private fields */ }