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 duplicate 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 Freeze for GlyphVariations
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.