Type Alias ConditionFormat1

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

Condition Table Format 1: Font Variation Axis Range

Aliased Type§

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

Fields§

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

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