Type Alias Chain

Source
pub type Chain<'a> = TableRef<'a, ChainMarker>;
Expand description

A chain in a morx table.

Aliased Type§

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

Fields§

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

Implementations§

Source§

impl<'a> Chain<'a>

Source

pub fn default_flags(&self) -> u32

The default specification for subtables.

Source

pub fn chain_length(&self) -> u32

Total byte count, including this header; must be a multiple of 4.

Source

pub fn n_feature_entries(&self) -> u32

Number of feature subtable entries.

Source

pub fn n_subtables(&self) -> u32

The number of subtables in the chain.

Source

pub fn features(&self) -> &'a [Feature]

Feature entries for this chain.

Source

pub fn subtables(&self) -> VarLenArray<'a, Subtable<'a>>

Array of chain subtables.

Trait Implementations§

Source§

impl<'a> Debug for Chain<'a>

Source§

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

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

impl<'a> FontRead<'a> for Chain<'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> SomeRecord<'a> for Chain<'a>

Source§

fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>

Source§

impl<'a> SomeTable<'a> for Chain<'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.
Source§

impl VarSize for Chain<'_>

Source§

type Size = u32

The type of the first (length) field of the item. Read more