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.