Type Alias Sequence

Source
pub type Sequence<'a> = TableRef<'a, SequenceMarker>;
Expand description

Aliased Type§

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

Fields§

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

Implementations§

Source§

impl<'a> Sequence<'a>

Source

pub fn glyph_count(&self) -> u16

Number of glyph IDs in the substituteGlyphIDs array. This must always be greater than 0.

Source

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

String of glyph IDs to substitute

Trait Implementations§

Source§

impl<'a> Debug for Sequence<'a>

Source§

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

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

impl<'a> FontRead<'a> for Sequence<'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 Sequence<'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.