Type Alias ConditionFormat2

Source
pub type ConditionFormat2<'a> = TableRef<'a, ConditionFormat2Marker>;
Expand description

Condition Table Format 2: Variation index

Aliased Type§

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

Fields§

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

Implementations§

Source§

impl<'a> ConditionFormat2<'a>

Source

pub fn format(&self) -> u16

Format, = 2

Source

pub fn default_value(&self) -> i16

Value at default instance.

Source

pub fn var_index(&self) -> u32

Variation index to vary the value based on current designspace location.

Trait Implementations§

Source§

impl<'a> Debug for ConditionFormat2<'a>

Source§

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

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

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