Struct truetype::tables::font_header::FontHeader
source · pub struct FontHeader {Show 18 fields
pub major_version: u16,
pub minor_version: u16,
pub revision: q32,
pub checksum_adjustment: u32,
pub magic_number: u32,
pub flags: Flags,
pub units_per_em: u16,
pub created: i64,
pub modified: i64,
pub min_x: i16,
pub min_y: i16,
pub max_x: i16,
pub max_y: i16,
pub macintosh_flags: MacintoshFlags,
pub lowest_ppem: u16,
pub direction_hint: i16,
pub glyph_mapping_format: i16,
pub glyph_data_format: i16,
}
Expand description
A font header.
Fields§
§major_version: u16
§minor_version: u16
§revision: q32
§checksum_adjustment: u32
§magic_number: u32
§flags: Flags
§units_per_em: u16
§created: i64
§modified: i64
§min_x: i16
§min_y: i16
§max_x: i16
§max_y: i16
§macintosh_flags: MacintoshFlags
§lowest_ppem: u16
§direction_hint: i16
§glyph_mapping_format: i16
§glyph_data_format: i16
Trait Implementations§
source§impl Clone for FontHeader
impl Clone for FontHeader
source§fn clone(&self) -> FontHeader
fn clone(&self) -> FontHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FontHeader
impl Debug for FontHeader
source§impl Default for FontHeader
impl Default for FontHeader
source§fn default() -> FontHeader
fn default() -> FontHeader
Returns the “default value” for a type. Read more
source§impl Write for FontHeader
impl Write for FontHeader
impl Copy for FontHeader
Auto Trait Implementations§
impl RefUnwindSafe for FontHeader
impl Send for FontHeader
impl Sync for FontHeader
impl Unpin for FontHeader
impl UnwindSafe for FontHeader
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