Type Alias SharedTuples

Source
pub type SharedTuples<'a> = TableRef<'a, SharedTuplesMarker>;
Expand description

Array of tuple records shared across all glyph variation data tables.

Aliased Type§

pub struct SharedTuples<'a> {
    pub(crate) shape: SharedTuplesMarker,
    pub(crate) data: FontData<'a>,
}

Fields§

§shape: SharedTuplesMarker§data: FontData<'a>

Implementations§

Source§

impl<'a> SharedTuples<'a>

Source

pub fn read( data: FontData<'a>, shared_tuple_count: u16, axis_count: u16, ) -> Result<Self, ReadError>

A constructor that requires additional arguments.

This type requires some external state in order to be parsed.

Source§

impl<'a> SharedTuples<'a>

Source

pub fn tuples(&self) -> ComputedArray<'a, Tuple<'a>>

Source

pub(crate) fn axis_count(&self) -> u16

Trait Implementations§

Source§

impl<'a> Debug for SharedTuples<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> FontReadWithArgs<'a> for SharedTuples<'a>

Source§

fn read_with_args( data: FontData<'a>, args: &(u16, u16), ) -> Result<Self, ReadError>

read an item, using the provided args. Read more
Source§

impl ReadArgs for SharedTuples<'_>

Source§

type Args = (u16, u16)

Source§

impl<'a> SomeTable<'a> for SharedTuples<'a>

Source§

fn type_name(&self) -> &str

The name of this table
Source§

fn get_field(&self, idx: usize) -> Option<Field<'a>>

Access this table’s fields, in declaration order.