Type Alias Ligature

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

Aliased Type§

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

Fields§

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

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> Debug for Ligature<'a>

Source§

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

Formats the value using the given formatter. Read more
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
Source§

impl Intersect for Ligature<'_>

Source§

fn intersects(&self, glyph_set: &IntSet<GlyphId>) -> Result<bool, ReadError>

Source§

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