Type Alias TupleVariationHeader

Source
pub type TupleVariationHeader<'a> = TableRef<'a, TupleVariationHeaderMarker>;
Expand description

Aliased Type§

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

Fields§

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

Implementations§

Source§

impl<'a> TupleVariationHeader<'a>

Source

pub fn read(data: FontData<'a>, 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> TupleVariationHeader<'a>

Source

pub fn variation_data_size(&self) -> u16

The size in bytes of the serialized data for this tuple variation table.

Source

pub fn tuple_index(&self) -> TupleIndex

A packed field. The high 4 bits are flags (see below). The low 12 bits are an index into a shared tuple records array.

Source§

impl<'a> TupleVariationHeader<'a>

Source

fn traverse_tuple_index(&self) -> FieldType<'a>

Source

pub fn peak_tuple(&self) -> Option<Tuple<'a>>

Peak tuple record for this tuple variation table — optional, determined by flags in the tupleIndex value. Note that this must always be included in the ‘cvar’ table.

Source

pub fn intermediate_start_tuple(&self) -> Option<Tuple<'a>>

Intermediate start tuple record for this tuple variation table — optional, determined by flags in the tupleIndex value.

Source

pub fn intermediate_end_tuple(&self) -> Option<Tuple<'a>>

Intermediate end tuple record for this tuple variation table — optional, determined by flags in the tupleIndex value.

Source

pub fn intermediate_tuples(&self) -> Option<(Tuple<'a>, Tuple<'a>)>

Intermediate tuple records for this tuple variation table — optional, determined by flags in the tupleIndex value.

Source

fn byte_len(&self, axis_count: u16) -> usize

Compute the actual length of this table in bytes

Trait Implementations§

Source§

impl<'a> Debug for TupleVariationHeader<'a>

Source§

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

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

impl<'a> FontReadWithArgs<'a> for TupleVariationHeader<'a>

Source§

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

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

impl ReadArgs for TupleVariationHeader<'_>

Source§

impl<'a> SomeTable<'a> for TupleVariationHeader<'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.