read_fonts::tables::gsub

Type Alias SingleSubstFormat2

Source
pub type SingleSubstFormat2<'a> = TableRef<'a, SingleSubstFormat2Marker>;
Expand description

Aliased Type§

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

Implementations§

Source§

impl<'a> SingleSubstFormat2<'a>

Source

pub fn subst_format(&self) -> u16

Format identifier: format = 2

Source

pub fn coverage_offset(&self) -> Offset16

Offset to Coverage table, from beginning of substitution subtable

Source

pub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>

Attempt to resolve coverage_offset.

Source

pub fn glyph_count(&self) -> u16

Number of glyph IDs in the substituteGlyphIDs array

Source

pub fn substitute_glyph_ids(&self) -> &'a [BigEndian<GlyphId16>]

Array of substitute glyph IDs — ordered by Coverage index

Trait Implementations§

Source§

impl<'a> FontRead<'a> for SingleSubstFormat2<'a>

Source§

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

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