Type Alias FeatureTableSubstitution

Source
pub type FeatureTableSubstitution<'a> = TableRef<'a, FeatureTableSubstitutionMarker>;
Expand description

Aliased Type§

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

Fields§

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

Implementations§

Source§

impl<'a> FeatureTableSubstitution<'a>

Source

pub fn version(&self) -> MajorMinor

Major & minor version of the table: (1, 0)

Source

pub fn substitution_count(&self) -> u16

Number of feature table substitution records.

Source

pub fn substitutions(&self) -> &'a [FeatureTableSubstitutionRecord]

Array of feature table substitution records.

Trait Implementations§

Source§

impl<'a> Debug for FeatureTableSubstitution<'a>

Source§

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

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

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