Type Alias Lookup

Source
pub type Lookup<'a, T> = TableRef<'a, LookupMarker<T>>;
Expand description

Aliased Type§

pub struct Lookup<'a, T> {
    pub(crate) shape: LookupMarker<T>,
    pub(crate) data: FontData<'a>,
}

Fields§

§shape: LookupMarker<T>§data: FontData<'a>

Implementations§

Source§

impl<'a> Lookup<'a, ()>

Source

pub(crate) fn into_concrete<T>(self) -> Lookup<'a, T>

Source§

impl<'a, T> Lookup<'a, T>

Source

pub(crate) fn of_unit_type(&self) -> Lookup<'a, ()>

Replace the specific generic type on this implementation with ()

Source§

impl<'a, T> Lookup<'a, T>

Source

pub fn lookup_type(&self) -> u16

Different enumerations for GSUB and GPOS

Source

pub fn lookup_flag(&self) -> LookupFlag

Lookup qualifiers

Source

pub fn sub_table_count(&self) -> u16

Number of subtables for this lookup

Source

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

Array of offsets to lookup subtables, from beginning of Lookup table

Source

pub fn subtables(&self) -> ArrayOfOffsets<'a, T, Offset16>
where T: FontRead<'a>,

A dynamically resolving wrapper for subtable_offsets.

Source

pub fn mark_filtering_set(&self) -> Option<u16>

Index (base 0) into GDEF mark glyph sets structure. This field is only present if the USE_MARK_FILTERING_SET lookup flag is set.

Source§

impl<'a, T: FontRead<'a>> Lookup<'a, T>

Source

pub fn get_subtable(&self, offset: Offset16) -> Result<T, ReadError>

Source

fn traverse_lookup_flag(&self) -> FieldType<'a>

Trait Implementations§

Source§

impl<'a, T: FontRead<'a> + SomeTable<'a> + 'a> Debug for Lookup<'a, T>

Source§

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

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

impl<'a, T> FontRead<'a> for Lookup<'a, T>

Source§

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

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

impl<'a, T: FontRead<'a> + SomeTable<'a> + 'a> SomeTable<'a> for Lookup<'a, T>

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.