Type Alias OtKern

Source
pub type OtKern<'a> = TableRef<'a, OtKernMarker>;
Expand description

The OpenType kerning table.

Aliased Type§

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

Implementations§

Source§

impl<'a> OtKern<'a>

Source

pub fn version(&self) -> u16

Table version number—set to 0.

Source

pub fn n_tables(&self) -> u16

Number of subtables in the kerning table.

Source

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

Data for subtables, immediately following the header.

Trait Implementations§

Source§

impl<'a> FontRead<'a> for OtKern<'a>

Source§

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

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