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> Debug for Lookup0<'a>

source§

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

Formats the value using the given formatter. Read more
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
source§

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