pub struct GvarTable<'a> {
pub major_version: u16,
pub minor_version: u16,
pub axis_count: u16,
pub glyph_count: u16,
/* private fields */
}Expand description
gvar Glyph Variations Table
https://learn.microsoft.com/en-us/typography/opentype/spec/gvar#gvar-header
Fields§
§major_version: u16Major version number of the glyph variations table.
minor_version: u16Minor version number of the glyph variations table.
axis_count: u16The number of variation axes for this font.
This must be the same number as axisCount in the ‘fvar’ table.
glyph_count: u16The number of glyphs in this font.
This must match the number of glyphs stored elsewhere in the font.
Implementations§
Source§impl<'a> GvarTable<'a>
impl<'a> GvarTable<'a>
Sourcepub fn glyph_variation_data(
&self,
glyph_index: u16,
num_points: NumPoints,
) -> Result<Option<TupleVariationStore<'a, Gvar>>, ParseError>
pub fn glyph_variation_data( &self, glyph_index: u16, num_points: NumPoints, ) -> Result<Option<TupleVariationStore<'a, Gvar>>, ParseError>
Returns the variation data for the glyph at glyph_index that has
num_points points (including and phantom points).
If the glyph has no variations, such as when the glyph is an empty
glyph, then None is returned.
Returns the shared peak tuple at the supplied index.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for GvarTable<'a>
impl<'a> RefUnwindSafe for GvarTable<'a>
impl<'a> Send for GvarTable<'a>
impl<'a> Sync for GvarTable<'a>
impl<'a> Unpin for GvarTable<'a>
impl<'a> UnwindSafe for GvarTable<'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