Type Alias LigatureSet

Source
pub type LigatureSet<'a> = TableRef<'a, LigatureSetMarker>;
Expand description

Aliased Type§

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

Fields§

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

Implementations§

Source§

impl<'a> LigatureSet<'a>

Source

pub fn ligature_count(&self) -> u16

Number of Ligature tables

Source

pub fn ligature_offsets(&self) -> &'a [BigEndian<Offset16>]

Array of offsets to Ligature tables. Offsets are from beginning of LigatureSet table, ordered by preference.

Source

pub fn ligatures(&self) -> ArrayOfOffsets<'a, Ligature<'a>, Offset16>

A dynamically resolving wrapper for ligature_offsets.

Trait Implementations§

Source§

impl<'a> Debug for LigatureSet<'a>

Source§

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

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

impl<'a> FontRead<'a> for LigatureSet<'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 LigatureSet<'_>

Source§

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

Source§

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