HorizontalHeaderTable
struct · ferroui-base · v0.5.0
struct HorizontalHeaderTable
The hhea (horizontal header) table.
Members
versionadvance_width_maxascendercaret_offsetcaret_slope_risecaret_slope_rundescenderline_gapmin_left_side_bearingmin_right_side_bearingnumber_of_h_metricsx_max_extentTABLE_NAMETAGnewtry_load
version
version: super::font_version::FontVersion
advance_width_max
advance_width_max: u16
ascender
ascender: i16
caret_offset
caret_offset: i16
caret_slope_rise
caret_slope_rise: i16
caret_slope_run
caret_slope_run: i16
descender
descender: i16
line_gap
line_gap: i16
min_left_side_bearing
min_left_side_bearing: i16
min_right_side_bearing
min_right_side_bearing: i16
number_of_h_metrics
number_of_h_metrics: u16
x_max_extent
x_max_extent: i16
TABLE_NAME
const TABLE_NAME: &'static str
TAG
const TAG: OpenTypeTag
new
const fn new(version: FontVersion, ascender: i16, descender: i16, line_gap: i16, advance_width_max: u16, min_left_side_bearing: i16, min_right_side_bearing: i16, x_max_extent: i16, caret_slope_rise: i16, caret_slope_run: i16, caret_offset: i16, number_of_h_metrics: u16) -> Self
try_load
fn try_load(font: &dyn IFontMemory) -> Result<Option<HorizontalHeaderTable>, FontTableError>
Loads the table.
Ok(None) when the font has no hhea table or its metric data format
is not 0; Err when the table is present but too short.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugStructuralPartialEqPartialEqDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.