Enum FontFormat
pub(crate) enum FontFormat {
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 Type1 font.
Cff(u32)
A pure CFF font.
The field contains the number of available fonts.
Implementations§
§impl FontFormat
impl FontFormat
Trait Implementations§
§impl Clone for FontFormat
impl Clone for FontFormat
§fn clone(&self) -> FontFormat
fn clone(&self) -> FontFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for FontFormat
impl Debug for FontFormat
§impl Hash for FontFormat
impl Hash for FontFormat
§impl PartialEq for FontFormat
impl PartialEq for FontFormat
impl Copy for FontFormat
impl Eq for FontFormat
impl StructuralPartialEq for FontFormat
Auto Trait Implementations§
impl Freeze for FontFormat
impl RefUnwindSafe for FontFormat
impl Send for FontFormat
impl Sync for FontFormat
impl Unpin for FontFormat
impl UnsafeUnpin for FontFormat
impl UnwindSafe for FontFormat
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