Type Alias AxisValueFormat4

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

Aliased Type§

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

Fields§

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

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.