read_fonts::tables::gsub

Type Alias Ligature

Source
pub type Ligature<'a> = TableRef<'a, LigatureMarker>;
Expand description

Aliased Type§

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

Implementations§

Source§

impl<'a> Ligature<'a>

Source

pub fn ligature_glyph(&self) -> GlyphId16

glyph ID of ligature to substitute

Source

pub fn component_count(&self) -> u16

Number of components in the ligature

Source

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

Array of component glyph IDs — start with the second component, ordered in writing direction

Trait Implementations§

Source§

impl<'a> FontRead<'a> for Ligature<'a>

Source§

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

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