read_fonts::tables::gpos

Type Alias LigatureArray

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

Aliased Type§

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

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.

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.