Type Alias read_fonts::tables::layout::ConditionFormat1

source ·
pub type ConditionFormat1<'a> = TableRef<'a, ConditionFormat1Marker>;
Expand description

Condition Table Format 1: Font Variation Axis Range

Aliased Type§

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

Implementations§

source§

impl<'a> ConditionFormat1<'a>

source

pub fn format(&self) -> u16

Format, = 1

source

pub fn axis_index(&self) -> u16

Index (zero-based) for the variation axis within the ‘fvar’ table.

source

pub fn filter_range_min_value(&self) -> F2Dot14

Minimum value of the font variation instances that satisfy this condition.

source

pub fn filter_range_max_value(&self) -> F2Dot14

Maximum value of the font variation instances that satisfy this condition.

Trait Implementations§

source§

impl<'a> Debug for ConditionFormat1<'a>

source§

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

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

impl<'a> FontRead<'a> for ConditionFormat1<'a>

source§

fn read(data: FontData<'a>) -> Result<Self, ReadError>

Read an instace of Self from the provided data, performing validation. Read more
source§

impl<'a> SomeTable<'a> for ConditionFormat1<'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.