VerticalHeaderTable
struct · ferroui-base · v0.5.0
struct VerticalHeaderTable
The vhea (vertical header) table.
Members
versionadvance_height_maxascendercaret_offsetcaret_slope_risecaret_slope_rundescenderline_gapmin_top_side_bearingmin_bottom_side_bearingnumber_of_v_metricsy_max_extentTABLE_NAMETAGnewtry_load
version
version: super::font_version::FontVersion
advance_height_max
advance_height_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_top_side_bearing
min_top_side_bearing: i16
min_bottom_side_bearing
min_bottom_side_bearing: i16
number_of_v_metrics
number_of_v_metrics: u16
y_max_extent
y_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_height_max: u16, min_top_side_bearing: i16, min_bottom_side_bearing: i16, y_max_extent: i16, caret_slope_rise: i16, caret_slope_run: i16, caret_offset: i16, number_of_v_metrics: u16) -> Self
try_load
fn try_load(font: &dyn IFontMemory) -> Result<Option<VerticalHeaderTable>, FontTableError>
Loads the table.
Ok(None) when the font has no vhea 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.