Struct truetype::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 mac_style: u16,
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
mac_style: u16
lowest_ppem: u16
direction_hint: i16
glyph_mapping_format: i16
glyph_data_format: i16
Trait Implementations
sourceimpl Clone for FontHeader
impl Clone for FontHeader
sourcefn clone(&self) -> FontHeader
fn clone(&self) -> FontHeader
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for FontHeader
impl Debug for FontHeader
sourceimpl Default for FontHeader
impl Default for FontHeader
sourcefn default() -> FontHeader
fn default() -> FontHeader
Returns the “default value” for a type. Read more
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more