pub type Vhea<'a> = TableRef<'a, VheaMarker>;
Expand description
The vhea Vertical Header Table
Aliased Type§
struct Vhea<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Vhea<'a>
impl<'a> Vhea<'a>
Sourcepub fn version(&self) -> Version16Dot16
pub fn version(&self) -> Version16Dot16
The major/minor version (1, 1)
Sourcepub fn line_gap(&self) -> FWord
pub fn line_gap(&self) -> FWord
Typographic line gap. Negative LineGap values are treated as zero in some legacy platform implementations.
Sourcepub fn advance_height_max(&self) -> UfWord
pub fn advance_height_max(&self) -> UfWord
Maximum advance height value in ‘vmtx’ table.
Sourcepub fn min_top_side_bearing(&self) -> FWord
pub fn min_top_side_bearing(&self) -> FWord
Minimum top sidebearing value in ‘vmtx’ table for glyphs with contours (empty glyphs should be ignored).
Sourcepub fn min_bottom_side_bearing(&self) -> FWord
pub fn min_bottom_side_bearing(&self) -> FWord
Minimum bottom sidebearing value
Sourcepub fn y_max_extent(&self) -> FWord
pub fn y_max_extent(&self) -> FWord
Defined as max( tsb + (yMax-yMin)).
Sourcepub fn caret_slope_rise(&self) -> i16
pub fn caret_slope_rise(&self) -> i16
Used to calculate the slope of the cursor (rise/run); 1 for vertical caret, 0 for horizontal.
Sourcepub fn caret_slope_run(&self) -> i16
pub fn caret_slope_run(&self) -> i16
0 for vertical caret, 1 for horizontal.
Sourcepub fn caret_offset(&self) -> i16
pub fn caret_offset(&self) -> i16
The amount by which a slanted highlight on a glyph needs to be shifted to produce the best appearance. Set to 0 for non-slanted fonts
Sourcepub fn metric_data_format(&self) -> i16
pub fn metric_data_format(&self) -> i16
0 for current format.
Sourcepub fn number_of_long_ver_metrics(&self) -> u16
pub fn number_of_long_ver_metrics(&self) -> u16
Number of LongMetric entries in ‘hmtx’/‘vmtx’ table