pub struct Vhea {
pub version: Version16Dot16,
pub ascender: FWord,
pub descender: FWord,
pub line_gap: FWord,
pub advance_height_max: UfWord,
pub min_top_side_bearing: FWord,
pub min_bottom_side_bearing: FWord,
pub y_max_extent: FWord,
pub caret_slope_rise: i16,
pub caret_slope_run: i16,
pub caret_offset: i16,
pub number_of_long_ver_metrics: u16,
}tables only.Expand description
The vhea Vertical Header Table
Fields§
§version: Version16Dot16The major/minor version (1, 0 or 1, 1)
ascender: FWordTypographic ascent.
descender: FWordTypographic descent.
line_gap: FWordTypographic line gap. Negative LineGap values are treated as zero in some legacy platform implementations.
advance_height_max: UfWordMaximum advance height value in ‘vmtx’ table.
min_top_side_bearing: FWordMinimum top sidebearing value in ‘vmtx’ table for glyphs with contours (empty glyphs should be ignored).
min_bottom_side_bearing: FWordMinimum bottom sidebearing value
y_max_extent: FWordDefined as max( tsb + (yMax-yMin)).
caret_slope_rise: i16Used to calculate the slope of the cursor (rise/run); 1 for vertical caret, 0 for horizontal.
caret_slope_run: i160 for vertical caret, 1 for horizontal.
caret_offset: i16The 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
number_of_long_ver_metrics: u16Number of advance heights in the vertical metrics (vmtx) table.
Implementations§
Source§impl Vhea
impl Vhea
Sourcepub fn new(
ascender: FWord,
descender: FWord,
line_gap: FWord,
advance_height_max: UfWord,
min_top_side_bearing: FWord,
min_bottom_side_bearing: FWord,
y_max_extent: FWord,
caret_slope_rise: i16,
caret_slope_run: i16,
caret_offset: i16,
number_of_long_ver_metrics: u16,
) -> Self
pub fn new( ascender: FWord, descender: FWord, line_gap: FWord, advance_height_max: UfWord, min_top_side_bearing: FWord, min_bottom_side_bearing: FWord, y_max_extent: FWord, caret_slope_rise: i16, caret_slope_run: i16, caret_offset: i16, number_of_long_ver_metrics: u16, ) -> Self
Construct a new Vhea
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Vhea
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Vhea
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Vhea
Source§impl<'a> FontRead<'a> for Vhea
impl<'a> FontRead<'a> for Vhea
Source§impl FontWrite for Vhea
impl FontWrite for Vhea
Source§fn write_into(&self, writer: &mut TableWriter)
fn write_into(&self, writer: &mut TableWriter)
Source§fn table_type(&self) -> TableType
fn table_type(&self) -> TableType
Source§impl<'a> FromObjRef<Vhea<'a>> for Vhea
impl<'a> FromObjRef<Vhea<'a>> for Vhea
Source§fn from_obj_ref(obj: &Vhea<'a>, _: FontData<'_>) -> Self
fn from_obj_ref(obj: &Vhea<'a>, _: FontData<'_>) -> Self
from to an instance of Self, using the provided data to resolve offsets.Source§impl<'a> FromTableRef<Vhea<'a>> for Vhea
impl<'a> FromTableRef<Vhea<'a>> for Vhea
fn from_table_ref(from: &T) -> Self
Source§impl Ord for Vhea
impl Ord for Vhea
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Vhea
impl PartialOrd for Vhea
impl StructuralPartialEq for Vhea
Auto Trait Implementations§
impl Freeze for Vhea
impl RefUnwindSafe for Vhea
impl Send for Vhea
impl Sync for Vhea
impl Unpin for Vhea
impl UnsafeUnpin for Vhea
impl UnwindSafe for Vhea
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
tables only.T, using the provided data to resolve any offsets.Source§impl<U, T> ToOwnedTable<U> for Twhere
U: FromTableRef<T>,
impl<U, T> ToOwnedTable<U> for Twhere
U: FromTableRef<T>,
Source§fn to_owned_table(&self) -> U
fn to_owned_table(&self) -> U
tables only.