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> {
    pub(crate) shape: OtSubtableMarker,
    pub(crate) data: FontData<'a>,
}

Fields§

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

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.

Source§

impl OtSubtable<'_>

Source

const HEADER_LEN: usize = 6usize

Trait Implementations§

Source§

impl<'a> Debug for OtSubtable<'a>

Source§

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

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

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