Enum azul_webrender_api::FontTemplate [−][src]
pub enum FontTemplate { Raw(Arc<Vec<u8>>, u32), Native(NativeFontHandle), }
Expand description
Container for the raw data describing a font. This might be a stream of bytes corresponding to a downloaded font, or a handle to a native font from the operating system.
Note that fonts need to be instantiated before being used, which involves assigning size and various other options. The word ‘template’ here is intended to distinguish this data from instance-specific data.
Variants
Native(NativeFontHandle)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FontTemplate
impl Send for FontTemplate
impl Sync for FontTemplate
impl Unpin for FontTemplate
impl UnwindSafe for FontTemplate
Blanket Implementations
Mutably borrows from an owned value. Read more