Type Alias read_fonts::tables::stat::AxisValueArray

source ·
pub type AxisValueArray<'a> = TableRef<'a, AxisValueArrayMarker>;
Expand description

An array of AxisValue tables.

Aliased Type§

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

Implementations§

source§

impl<'a> AxisValueArray<'a>

source

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

source

pub fn axis_value_offsets(&self) -> &'a [BigEndian<Offset16>]

Array of offsets to axis value tables, in bytes from the start of the axis value offsets array.

source

pub fn axis_values(&self) -> ArrayOfOffsets<'a, AxisValue<'a>, Offset16>

A dynamically resolving wrapper for axis_value_offsets.

Trait Implementations§

source§

impl<'a> Debug for AxisValueArray<'a>

source§

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

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

impl<'a> FontReadWithArgs<'a> for AxisValueArray<'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 AxisValueArray<'_>

source§

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