read_fonts::tables::layout

Type Alias 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<GlyphId16>]

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

Source§

fn read(data: FontData<'a>) -> Result<Self, ReadError>

Read an instance of Self from the provided data, performing validation. Read more