read_fonts::tables::layout

Type Alias ConditionFormat2

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

Condition Table Format 2: Variation index

Aliased Type§

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

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> 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