read_fonts::tables::gvar

Type Alias GlyphVariationData

Source
pub type GlyphVariationData<'a> = TupleVariationData<'a, GlyphDelta>;
Expand description

Variation data specialized for the glyph variations table.

Aliased Type§

struct GlyphVariationData<'a> { /* private fields */ }

Implementations

Source§

impl<'a, T> TupleVariationData<'a, T>
where T: TupleDelta + 'a,

Source

pub fn tuples(&self) -> TupleVariationIter<'a, T>

Source

pub fn active_tuples_at( &self, coords: &'a [F2Dot14], ) -> impl Iterator<Item = (TupleVariation<'a, T>, Fixed)> + 'a

Returns an iterator over all of the pairs of (variation tuple, scalar) for this glyph that are active for the given set of normalized coordinates.

Trait Implementations

Source§

impl<'a, T: Clone> Clone for TupleVariationData<'a, T>

Source§

fn clone(&self) -> TupleVariationData<'a, T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more