Type Alias AlternateSet

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

Aliased Type§

pub struct AlternateSet<'a> {
    pub(crate) shape: AlternateSetMarker,
    pub(crate) data: FontData<'a>,
}

Fields§

§shape: AlternateSetMarker§data: FontData<'a>

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> 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 instance 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.