HeadTable
struct · ferroui-base · v0.5.0
struct HeadTable
The head (font header) table.
Members
versionfont_revisioncheck_sum_adjustmentmagic_numberflagsunits_per_emcreatedmodifiedx_miny_minx_maxy_maxmac_stylelowest_rec_ppemfont_direction_hintindex_to_loc_formatglyph_data_formatTABLE_NAMETAGDATE_TIME_MIN_TICKSDATE_TIME_MAX_TICKSFONT_EPOCH_TICKStry_load
version
version: super::font_version::FontVersion
font_revision
font_revision: super::font_version::FontVersion
check_sum_adjustment
check_sum_adjustment: u32
magic_number
magic_number: u32
flags
flags: HeadFlags
units_per_em
units_per_em: u16
created
created: i64
The creation time in ticks: 100 ns units since 0001-01-01T00:00:00 UTC,
clamped to [HeadTable::DATE_TIME_MIN_TICKS, HeadTable::DATE_TIME_MAX_TICKS].
modified
modified: i64
The modification time in ticks, see HeadTable::created.
x_min
x_min: i16
y_min
y_min: i16
x_max
x_max: i16
y_max
y_max: i16
mac_style
mac_style: MacStyleFlags
lowest_rec_ppem
lowest_rec_ppem: u16
font_direction_hint
font_direction_hint: FontDirectionHint
index_to_loc_format
index_to_loc_format: IndexToLocFormat
glyph_data_format
glyph_data_format: GlyphDataFormat
TABLE_NAME
const TABLE_NAME: &'static str
TAG
const TAG: OpenTypeTag
DATE_TIME_MIN_TICKS
const DATE_TIME_MIN_TICKS: i64
The smallest representable timestamp (0001-01-01T00:00:00).
DATE_TIME_MAX_TICKS
const DATE_TIME_MAX_TICKS: i64
The largest representable timestamp (9999-12-31T23:59:59.9999999).
FONT_EPOCH_TICKS
const FONT_EPOCH_TICKS: i64
The font epoch (1904-01-01T00:00:00 UTC) in ticks.
try_load
fn try_load(font: &dyn IFontMemory) -> Result<Option<HeadTable>, FontTableError>
Loads the table.
Ok(None) when the font has no head table; Err when the table is
present but too short.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugStructuralPartialEqPartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.