Type Alias read_fonts::tables::layout::SequenceRule

source ·
pub type SequenceRule<'a> = TableRef<'a, SequenceRuleMarker>;
Expand description

Aliased Type§

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

Implementations§

source§

impl<'a> SequenceRule<'a>

source

pub fn glyph_count(&self) -> u16

Number of glyphs in the input glyph sequence

source

pub fn seq_lookup_count(&self) -> u16

Number of SequenceLookupRecords

source

pub fn input_sequence(&self) -> &'a [BigEndian<GlyphId>]

Array of input glyph IDs—starting with the second glyph

source

pub fn seq_lookup_records(&self) -> &'a [SequenceLookupRecord]

Array of Sequence lookup records

Trait Implementations§

source§

impl<'a> Debug for SequenceRule<'a>

source§

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

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

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