Type Alias OtSubtable

Source
pub type OtSubtable<'a> = TableRef<'a, OtSubtableMarker>;
Expand description

A subtable in an OT kern table.

Aliased Type§

pub struct OtSubtable<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> OtSubtable<'a>

Source

pub fn version(&self) -> u16

Kern subtable version number– set to 0.

Source

pub fn length(&self) -> u16

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 data(&self) -> &'a [u8]

Subtable specific data.

Trait Implementations§

Source§

impl<'a> FontRead<'a> for OtSubtable<'a>

Source§

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

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