read_fonts::tables::aat

Type Alias Lookup0

Source
pub type Lookup0<'a> = TableRef<'a, Lookup0Marker>;
Expand description

Simple array format. The lookup data is an array of lookup values, indexed by glyph index.

Aliased Type§

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

Implementations§

Source§

impl<'a> Lookup0<'a>

Source

pub fn format(&self) -> u16

Format number is set to 0.

Source

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

Values, indexed by glyph index.

Source§

impl<'a> Lookup0<'a>

Source

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

Trait Implementations§

Source§

impl<'a> FontRead<'a> for Lookup0<'a>

Source§

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

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