Type Alias SinglePosFormat2

Source
pub type SinglePosFormat2<'a> = TableRef<'a, SinglePosFormat2Marker>;
Expand description

Single Adjustment Positioning Format 2: Array of Positioning Values

Aliased Type§

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

Fields§

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

Implementations§

Source§

impl<'a> SinglePosFormat2<'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 SinglePos subtable.

Source

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

Attempt to resolve coverage_offset.

Source

pub fn value_format(&self) -> ValueFormat

Defines the types of data in the ValueRecords.

Source

pub fn value_count(&self) -> u16

Number of ValueRecords — must equal glyphCount in the Coverage table.

Source

pub fn value_records(&self) -> ComputedArray<'a, ValueRecord>

Array of ValueRecords — positioning values applied to glyphs.

Trait Implementations§

Source§

impl<'a> Debug for SinglePosFormat2<'a>

Source§

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

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

impl<'a> FontRead<'a> for SinglePosFormat2<'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 Intersect for SinglePosFormat2<'_>

Source§

fn intersects(&self, glyph_set: &IntSet<GlyphId>) -> Result<bool, ReadError>

Source§

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