Type Definition read_fonts::tables::layout::ConditionSet

source ·
pub type ConditionSet<'a> = TableRef<'a, ConditionSetMarker>;
Expand description

Implementations§

source§

impl<'a> ConditionSet<'a>

source

pub fn condition_count(&self) -> u16

Number of conditions for this condition set.

source

pub fn condition_offsets(&self) -> &'a [BigEndian<Offset32>]

Array of offsets to condition tables, from beginning of the ConditionSet table.

source

pub fn conditions( &self ) -> impl Iterator<Item = Result<ConditionFormat1<'a>, ReadError>> + 'a

Attempt to resolve condition_offsets.

Trait Implementations§

source§

impl<'a> Debug for ConditionSet<'a>

source§

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

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

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