Struct read_fonts::tables::gvar::TupleVariation
source · pub struct TupleVariation<'a> { /* private fields */ }Expand description
A single set of tuple variation data
Implementations§
source§impl<'a> TupleVariation<'a>
impl<'a> TupleVariation<'a>
sourcepub fn has_deltas_for_all_points(&self) -> bool
pub fn has_deltas_for_all_points(&self) -> bool
Returns true if this tuple provides deltas for all points in a glyph.
pub fn point_numbers(&'a self) -> PackedPointNumbersIter<'a> ⓘ
sourcepub fn compute_scalar(&self, coords: &[F2Dot14]) -> Option<Fixed>
pub fn compute_scalar(&self, coords: &[F2Dot14]) -> Option<Fixed>
Compute the scalar for a this tuple at a given point in design space.
The coords slice must be of lesser or equal length to the number of axes.
If it is less, missing (trailing) axes will be assumed to have zero values.
Returns None if this tuple is not applicable at the provided coordinates
(e.g. if the resulting scalar is zero).
Trait Implementations§
source§impl<'a> Clone for TupleVariation<'a>
impl<'a> Clone for TupleVariation<'a>
source§fn clone(&self) -> TupleVariation<'a>
fn clone(&self) -> TupleVariation<'a>
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<'a> RefUnwindSafe for TupleVariation<'a>
impl<'a> Send for TupleVariation<'a>
impl<'a> Sync for TupleVariation<'a>
impl<'a> Unpin for TupleVariation<'a>
impl<'a> UnwindSafe for TupleVariation<'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