Type Alias LigatureArray

Source
pub type LigatureArray<'a> = TableRef<'a, LigatureArrayMarker>;
Expand description

Aliased Type§

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

Fields§

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

Implementations§

Source§

impl<'a> LigatureArray<'a>

Source

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

A constructor that requires additional arguments.

This type requires some external state in order to be parsed.

Source§

impl<'a> LigatureArray<'a>

Source

pub fn ligature_count(&self) -> u16

Number of LigatureAttach table offsets

Source

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

Array of offsets to LigatureAttach tables. Offsets are from beginning of LigatureArray table, ordered by ligatureCoverage index.

Source

pub fn ligature_attaches( &self, ) -> ArrayOfOffsets<'a, LigatureAttach<'a>, Offset16>

A dynamically resolving wrapper for ligature_attach_offsets.

Source

pub(crate) fn mark_class_count(&self) -> u16

Trait Implementations§

Source§

impl<'a> Debug for LigatureArray<'a>

Source§

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

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

impl<'a> FontReadWithArgs<'a> for LigatureArray<'a>

Source§

fn read_with_args(data: FontData<'a>, args: &u16) -> Result<Self, ReadError>

read an item, using the provided args. Read more
Source§

impl ReadArgs for LigatureArray<'_>

Source§

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