Type Alias read_fonts::tables::fvar::AxisInstanceArrays

source ·
pub type AxisInstanceArrays<'a> = TableRef<'a, AxisInstanceArraysMarker>;
Expand description

Shim table to handle combined axis and instance arrays.

Aliased Type§

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

Implementations§

source§

impl<'a> AxisInstanceArrays<'a>

source

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

A constructor that requires additional arguments.

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

source§

impl<'a> AxisInstanceArrays<'a>

source

pub fn axes(&self) -> &'a [VariationAxisRecord]

Variation axis record array.

source

pub fn instances(&self) -> ComputedArray<'a, InstanceRecord<'a>>

Instance record array.

Trait Implementations§

source§

impl<'a> Debug for AxisInstanceArrays<'a>

source§

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

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

impl<'a> FontReadWithArgs<'a> for AxisInstanceArrays<'a>

source§

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

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

impl ReadArgs for AxisInstanceArrays<'_>

source§

type Args = (u16, u16, u16)

source§

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