Type Alias Subtable2ClassTable

Source
pub type Subtable2ClassTable<'a> = TableRef<'a, Subtable2ClassTableMarker>;
Expand description

Class table for the type 2 kern subtable.

Aliased Type§

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

Fields§

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

Implementations§

Source§

impl<'a> Subtable2ClassTable<'a>

Source

pub fn first_glyph(&self) -> GlyphId16

First glyph in class range.

Source

pub fn n_glyphs(&self) -> u16

Number of glyph in class range.

Source

pub fn offsets(&self) -> &'a [BigEndian<u16>]

The offsets array for all of the glyphs in the range.

Source§

impl Subtable2ClassTable<'_>

Source

fn value(&self, glyph_id: GlyphId) -> Option<u16>

Trait Implementations§

Source§

impl<'a> Debug for Subtable2ClassTable<'a>

Source§

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

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

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