Struct write_fonts::tables::gvar::GlyphVariations
source · pub struct GlyphVariations { /* private fields */ }Expand description
Variation data for a single glyph, before it is compiled
Implementations§
source§impl GlyphVariations
impl GlyphVariations
sourcepub fn new(gid: GlyphId, variations: Vec<GlyphDeltas>) -> Self
pub fn new(gid: GlyphId, variations: Vec<GlyphDeltas>) -> Self
Construct a new set of variation deltas for a glyph.
sourcepub fn axis_count(&self) -> Option<u16>
pub fn axis_count(&self) -> Option<u16>
Will be None if there are no variations for this glyph
Trait Implementations§
source§impl Clone for GlyphVariations
impl Clone for GlyphVariations
source§fn clone(&self) -> GlyphVariations
fn clone(&self) -> GlyphVariations
Returns a copy of the value. Read more
1.0.0 · 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 RefUnwindSafe for GlyphVariations
impl Send for GlyphVariations
impl Sync for GlyphVariations
impl Unpin for GlyphVariations
impl UnwindSafe for GlyphVariations
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<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
Convert this type into
T, using the provided data to resolve any offsets.