pub type Head<'a> = TableRef<'a, HeadMarker>;
Expand description
The head (font header) table.
Aliased Type§
struct Head<'a> { /* private fields */ }
Implementations§
source§impl<'a> Head<'a>
impl<'a> Head<'a>
sourcepub fn version(&self) -> MajorMinor
pub fn version(&self) -> MajorMinor
Version number of the font header table, set to (1, 0)
sourcepub fn font_revision(&self) -> Fixed
pub fn font_revision(&self) -> Fixed
Set by font manufacturer.
sourcepub fn checksum_adjustment(&self) -> u32
pub fn checksum_adjustment(&self) -> u32
To compute: set it to 0, sum the entire font as uint32, then store 0xB1B0AFBA - sum. If the font is used as a component in a font collection file, the value of this field will be invalidated by changes to the file structure and font table directory, and must be ignored.
sourcepub fn magic_number(&self) -> u32
pub fn magic_number(&self) -> u32
Set to 0x5F0F3CF5.
sourcepub fn units_per_em(&self) -> u16
pub fn units_per_em(&self) -> u16
Set to a value from 16 to 16384. Any value in this range is valid. In fonts that have TrueType outlines, a power of 2 is recommended as this allows performance optimizations in some rasterizers.
sourcepub fn created(&self) -> LongDateTime
pub fn created(&self) -> LongDateTime
Number of seconds since 12:00 midnight that started January 1st 1904 in GMT/UTC time zone.
sourcepub fn modified(&self) -> LongDateTime
pub fn modified(&self) -> LongDateTime
Number of seconds since 12:00 midnight that started January 1st 1904 in GMT/UTC time zone.
sourcepub fn lowest_rec_ppem(&self) -> u16
pub fn lowest_rec_ppem(&self) -> u16
Smallest readable size in pixels.
sourcepub fn font_direction_hint(&self) -> i16
pub fn font_direction_hint(&self) -> i16
Deprecated (Set to 2).
sourcepub fn index_to_loc_format(&self) -> i16
pub fn index_to_loc_format(&self) -> i16
0 for short offsets (Offset16), 1 for long (Offset32).
sourcepub fn glyph_data_format(&self) -> i16
pub fn glyph_data_format(&self) -> i16
0 for current format.