pub struct HvarTable<'a> {
pub major_version: u16,
pub minor_version: u16,
/* private fields */
}Expand description
HVAR — Horizontal Metrics Variations Table.
Fields§
§major_version: u16Major version number of the horizontal metrics variations table.
minor_version: u16Minor version number of the horizontal metrics variations table.
Implementations§
Source§impl<'a> HvarTable<'a>
impl<'a> HvarTable<'a>
Sourcepub fn advance_delta(
&self,
instance: &OwnedTuple,
glyph_id: u16,
) -> Result<f32, ParseError>
pub fn advance_delta( &self, instance: &OwnedTuple, glyph_id: u16, ) -> Result<f32, ParseError>
Calculate the delta for the advance of the supplied glyph_id.
Sourcepub fn left_side_bearing_delta(
&self,
instance: &OwnedTuple,
glyph_id: u16,
) -> Result<Option<f32>, ParseError>
pub fn left_side_bearing_delta( &self, instance: &OwnedTuple, glyph_id: u16, ) -> Result<Option<f32>, ParseError>
Calculate the delta for the left-side bearing of the supplied
glyph_id.
Sourcepub fn right_side_bearing_delta(
&self,
instance: &OwnedTuple,
glyph_id: u16,
) -> Result<Option<f32>, ParseError>
pub fn right_side_bearing_delta( &self, instance: &OwnedTuple, glyph_id: u16, ) -> Result<Option<f32>, ParseError>
Calculate the delta for the right-side bearing of the supplied
glyph_id.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for HvarTable<'a>
impl<'a> RefUnwindSafe for HvarTable<'a>
impl<'a> Send for HvarTable<'a>
impl<'a> Sync for HvarTable<'a>
impl<'a> Unpin for HvarTable<'a>
impl<'a> UnwindSafe for HvarTable<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more