read_fonts::tables::gpos

Type Alias PairPosFormat2

source
pub type PairPosFormat2<'a> = TableRef<'a, PairPosFormat2Marker>;
Expand description

Pair Adjustment Positioning Format 2: Class Pair Adjustment

Aliased Type§

struct PairPosFormat2<'a> { /* private fields */ }

Implementations§

source§

impl<'a> PairPosFormat2<'a>

source

pub fn pos_format(&self) -> u16

Format identifier: format = 2

source

pub fn coverage_offset(&self) -> Offset16

Offset to Coverage table, from beginning of PairPos subtable.

source

pub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>

Attempt to resolve coverage_offset.

source

pub fn value_format1(&self) -> ValueFormat

ValueRecord definition — for the first glyph of the pair (may be zero).

source

pub fn value_format2(&self) -> ValueFormat

ValueRecord definition — for the second glyph of the pair (may be zero).

source

pub fn class_def1_offset(&self) -> Offset16

Offset to ClassDef table, from beginning of PairPos subtable — for the first glyph of the pair.

source

pub fn class_def1(&self) -> Result<ClassDef<'a>, ReadError>

Attempt to resolve class_def1_offset.

source

pub fn class_def2_offset(&self) -> Offset16

Offset to ClassDef table, from beginning of PairPos subtable — for the second glyph of the pair.

source

pub fn class_def2(&self) -> Result<ClassDef<'a>, ReadError>

Attempt to resolve class_def2_offset.

source

pub fn class1_count(&self) -> u16

Number of classes in classDef1 table — includes Class 0.

source

pub fn class2_count(&self) -> u16

Number of classes in classDef2 table — includes Class 0.

source

pub fn class1_records(&self) -> ComputedArray<'a, Class1Record<'a>>

Array of Class1 records, ordered by classes in classDef1.

Trait Implementations§

source§

impl<'a> Debug for PairPosFormat2<'a>

source§

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

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

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