Type Alias read_fonts::tables::variations::TupleVariationHeader

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

Aliased Type§

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

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

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.

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<'_>

§

type Args = u16

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.