Type Alias AatSubtable

Source
pub type AatSubtable<'a> = TableRef<'a, AatSubtableMarker>;
Expand description

A subtable in an AAT kern table.

Aliased Type§

pub struct AatSubtable<'a> {
    pub(crate) shape: AatSubtableMarker,
    pub(crate) data: FontData<'a>,
}

Fields§

§shape: AatSubtableMarker§data: FontData<'a>

Implementations§

Source§

impl<'a> AatSubtable<'a>

Source

pub fn length(&self) -> u32

The length of this subtable in bytes, including this header.

Source

pub fn coverage(&self) -> u16

Circumstances under which this table is used.

Source

pub fn tuple_index(&self) -> u16

The tuple index (used for variations fonts). This value specifies which tuple this subtable covers.

Source

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

Subtable specific data.

Source§

impl AatSubtable<'_>

Source

const HEADER_LEN: usize = 8usize

Trait Implementations§

Source§

impl<'a> Debug for AatSubtable<'a>

Source§

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

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

impl<'a> FontRead<'a> for AatSubtable<'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 AatSubtable<'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.