Type Alias AxisValueFormat3

Source
pub type AxisValueFormat3<'a> = TableRef<'a, AxisValueFormat3Marker>;
Expand description

Aliased Type§

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

Fields§

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

Implementations§

Source§

impl<'a> AxisValueFormat3<'a>

Source

pub fn format(&self) -> u16

Format identifier — set to 3.

Source

pub fn axis_index(&self) -> u16

Zero-base index into the axis record array identifying the axis of design variation to which the axis value table applies. Must be less than designAxisCount.

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 attribute value.

Source

pub fn value(&self) -> Fixed

A numeric value for this attribute value.

Source

pub fn linked_value(&self) -> Fixed

The numeric value for a style-linked mapping from this value.

Trait Implementations§

Source§

impl<'a> Debug for AxisValueFormat3<'a>

Source§

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

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

impl<'a> FontRead<'a> for AxisValueFormat3<'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 AxisValueFormat3<'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.