read_fonts::tables::aat

Type Alias Lookup6

Source
pub type Lookup6<'a> = TableRef<'a, Lookup6Marker>;
Expand description

Single table format. The lookup data is a sorted list of <glyph index,lookup value> pairs.

Aliased Type§

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

Implementations§

Source§

impl<'a> Lookup6<'a>

Source

pub fn format(&self) -> u16

Format number is set to 6.

Source

pub fn unit_size(&self) -> u16

Size of a lookup unit for this search in bytes.

Source

pub fn n_units(&self) -> u16

Number of units of the preceding size to be searched.

Source

pub fn search_range(&self) -> u16

The value of unitSize times the largest power of 2 that is less than or equal to the value of nUnits.

Source

pub fn entry_selector(&self) -> u16

The log base 2 of the largest power of 2 less than or equal to the value of nUnits.

Source

pub fn range_shift(&self) -> u16

The value of unitSize times the difference of the value of nUnits minus the largest power of 2 less than or equal to the value of nUnits.

Source

pub fn entries_data(&self) -> &'a [u8]

Values, indexed by glyph index.

Source§

impl<'a> Lookup6<'a>

Source

pub fn value<T: LookupValue>(&self, index: u16) -> Result<T, ReadError>

Trait Implementations§

Source§

impl<'a> FontRead<'a> for Lookup6<'a>

Source§

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

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