pub enum SelectedVhea<'a> {
Original(Vhea<'a>),
Extended(VheaExtended<'a>),
}Expand description
A vertical header from VHEA or vhea.
Variants§
Original(Vhea<'a>)
The original vhea table.
Extended(VheaExtended<'a>)
The VHEA table (ISO/IEC 14496-22:2026).
Implementations§
Source§impl SelectedVhea<'_>
impl SelectedVhea<'_>
Sourcepub fn number_of_long_ver_metrics(&self) -> u32
pub fn number_of_long_ver_metrics(&self) -> u32
Number of long metric records.
Sourcepub fn advance_height_max(&self) -> UfWord
pub fn advance_height_max(&self) -> UfWord
Maximum advance height.
VHEA states this as a signed value, which is read as unsigned like that of vhea, HHEA and hhea.
Sourcepub fn version(&self) -> Version16Dot16
pub fn version(&self) -> Version16Dot16
Returns version from the selected table.
Sourcepub fn min_top_side_bearing(&self) -> FWord
pub fn min_top_side_bearing(&self) -> FWord
Returns min_top_side_bearing from the selected table.
Sourcepub fn min_bottom_side_bearing(&self) -> FWord
pub fn min_bottom_side_bearing(&self) -> FWord
Returns min_bottom_side_bearing from the selected table.
Sourcepub fn y_max_extent(&self) -> FWord
pub fn y_max_extent(&self) -> FWord
Returns y_max_extent from the selected table.
Sourcepub fn caret_slope_rise(&self) -> i16
pub fn caret_slope_rise(&self) -> i16
Returns caret_slope_rise from the selected table.
Sourcepub fn caret_slope_run(&self) -> i16
pub fn caret_slope_run(&self) -> i16
Returns caret_slope_run from the selected table.
Sourcepub fn caret_offset(&self) -> i16
pub fn caret_offset(&self) -> i16
Returns caret_offset from the selected table.
Sourcepub fn metric_data_format(&self) -> i16
pub fn metric_data_format(&self) -> i16
Returns metric_data_format from the selected table.
Trait Implementations§
Source§impl<'a> Clone for SelectedVhea<'a>
impl<'a> Clone for SelectedVhea<'a>
Source§fn clone(&self) -> SelectedVhea<'a>
fn clone(&self) -> SelectedVhea<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for SelectedVhea<'a>
impl<'a> RefUnwindSafe for SelectedVhea<'a>
impl<'a> Send for SelectedVhea<'a>
impl<'a> Sync for SelectedVhea<'a>
impl<'a> Unpin for SelectedVhea<'a>
impl<'a> UnsafeUnpin for SelectedVhea<'a>
impl<'a> UnwindSafe for SelectedVhea<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more