read_fonts::tables::gsub

Type Alias SingleSubstFormat1

Source
pub type SingleSubstFormat1<'a> = TableRef<'a, SingleSubstFormat1Marker>;
Expand description

Aliased Type§

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

Implementations§

Source§

impl<'a> SingleSubstFormat1<'a>

Source

pub fn subst_format(&self) -> u16

Format identifier: format = 1

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 delta_glyph_id(&self) -> i16

Add to original glyph ID to get substitute glyph ID

Trait Implementations§

Source§

impl<'a> FontRead<'a> for SingleSubstFormat1<'a>

Source§

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

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