read_fonts::tables::stat

Type Alias AxisValueFormat4

source
pub type AxisValueFormat4<'a> = TableRef<'a, AxisValueFormat4Marker>;
Expand description

Aliased Type§

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

Implementations§

source§

impl<'a> AxisValueFormat4<'a>

source

pub fn format(&self) -> u16

Format identifier — set to 4.

source

pub fn axis_count(&self) -> u16

The total number of axes contributing to this axis-values combination.

source

pub fn flags(&self) -> AxisValueTableFlags

Flags — see below for details.

source

pub fn value_name_id(&self) -> NameId

The name ID for entries in the ‘name’ table that provide a display string for this combination of axis values.

source

pub fn axis_values(&self) -> &'a [AxisValueRecord]

Array of AxisValue records that provide the combination of axis values, one for each contributing axis.

Trait Implementations§

source§

impl<'a> Debug for AxisValueFormat4<'a>

source§

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

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

impl<'a> FontRead<'a> for AxisValueFormat4<'a>

source§

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

Read an instance of Self from the provided data, performing validation. Read more
source§

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