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