read_fonts::tables::gsub

Type Alias AlternateSet

Source
pub type AlternateSet<'a> = TableRef<'a, AlternateSetMarker>;
Expand description

Aliased Type§

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

Implementations§

Source§

impl<'a> AlternateSet<'a>

Source

pub fn glyph_count(&self) -> u16

Number of glyph IDs in the alternateGlyphIDs array

Source

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

Array of alternate glyph IDs, in arbitrary order

Trait Implementations§

Source§

impl<'a> FontRead<'a> for AlternateSet<'a>

Source§

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

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