Type Alias read_fonts::tables::gsub::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<GlyphId>]

Array of alternate glyph IDs, in arbitrary order

Trait Implementations§

source§

impl<'a> Debug for AlternateSet<'a>

source§

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

Formats the value using the given formatter. Read more
source§

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

source§

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

Read an instace of Self from the provided data, performing validation. Read more
source§

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