OS2Table
struct · ferroui-base · v0.5.0
struct OS2Table
The OS/2 (OS/2 and Windows metrics) table.
Members
versionx_avg_char_widthweight_classwidth_classfs_typey_subscript_x_sizey_subscript_y_sizey_subscript_x_offsety_subscript_y_offsety_superscript_x_sizey_superscript_y_sizey_superscript_x_offsety_superscript_y_offsetstrikeout_sizestrikeout_positionfamily_classpanoseunicode_range1unicode_range2unicode_range3unicode_range4vendor_idselectionfirst_char_indexlast_char_indextypo_ascendertypo_descendertypo_line_gapwin_ascentwin_descentcode_page_range1code_page_range2x_heightcap_heightdefault_charbreak_charmax_contextlower_optical_point_sizeupper_optical_point_sizeTABLE_NAMETAGtry_load
version
version: u16
x_avg_char_width
x_avg_char_width: i16
weight_class
weight_class: u16
width_class
width_class: u16
fs_type
fs_type: u16
y_subscript_x_size
y_subscript_x_size: i16
y_subscript_y_size
y_subscript_y_size: i16
y_subscript_x_offset
y_subscript_x_offset: i16
y_subscript_y_offset
y_subscript_y_offset: i16
y_superscript_x_size
y_superscript_x_size: i16
y_superscript_y_size
y_superscript_y_size: i16
y_superscript_x_offset
y_superscript_x_offset: i16
y_superscript_y_offset
y_superscript_y_offset: i16
strikeout_size
strikeout_size: i16
strikeout_position
strikeout_position: i16
family_class
family_class: i16
panose
panose: super::panose::Panose
unicode_range1
unicode_range1: u32
unicode_range2
unicode_range2: u32
unicode_range3
unicode_range3: u32
unicode_range4
unicode_range4: u32
vendor_id
vendor_id: u32
selection
selection: FontSelectionFlags
first_char_index
first_char_index: u16
last_char_index
last_char_index: u16
typo_ascender
typo_ascender: i16
typo_descender
typo_descender: i16
typo_line_gap
typo_line_gap: i16
win_ascent
win_ascent: u16
win_descent
win_descent: u16
code_page_range1
code_page_range1: u32
code_page_range2
code_page_range2: u32
x_height
x_height: i16
cap_height
cap_height: i16
default_char
default_char: u16
break_char
break_char: u16
max_context
max_context: u16
lower_optical_point_size
lower_optical_point_size: u16
upper_optical_point_size
upper_optical_point_size: u16
TABLE_NAME
const TABLE_NAME: &'static str
TAG
const TAG: OpenTypeTag
try_load
fn try_load(font: &dyn IFontMemory) -> Result<Option<OS2Table>, FontTableError>
Loads the table.
Ok(None) when the font has no OS/2 table; Err when the table is
present but too short for its version.
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.