Type Alias read_fonts::tables::gsub::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> Debug for SingleSubstFormat2<'a>

source§

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

Formats the value using the given formatter. Read more
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
source§

impl<'a> SomeTable<'a> for SingleSubstFormat2<'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.