pub enum Format {
Sfnt(u32),
Type1,
Cff(u32),
}Expand description
Format for a blob of font data.
Variants§
Sfnt(u32)
An SFNT-based font, which includes TrueType and OpenType fonts.
This is the most common format for fonts.
The field contains the number of available fonts. This is always 1 for .ttf and .otf files and usually greater than 1 for .ttc and .otc files.
Type1
A Type 1 font.
Cff(u32)
A standalone CFF font.
The field contains the number of available fonts.
Implementations§
Trait Implementations§
impl Copy for Format
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more