Skip to main content

SharedFontData

Type Alias SharedFontData 

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

Byte container owned by a FontEntry. Erased behind a trait object so the registry can hold any of Vec<u8>, memmap2::Mmap, or &'static [u8] (via a wrapper) without copying. fontdb’s Source::Binary uses the same shape, so the same Arc can be shared with the database.

Aliased Type§

pub struct SharedFontData { /* private fields */ }