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

source§

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

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

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