read_fonts::tables::colr

Type Alias VarAffine2x3

Source
pub type VarAffine2x3<'a> = TableRef<'a, VarAffine2x3Marker>;
Expand description

VarAffine2x3 record

Aliased Type§

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

Implementations§

Source§

impl<'a> VarAffine2x3<'a>

Source

pub fn xx(&self) -> Fixed

x-component of transformed x-basis vector. For variation, use varIndexBase + 0.

Source

pub fn yx(&self) -> Fixed

y-component of transformed x-basis vector. For variation, use varIndexBase + 1.

Source

pub fn xy(&self) -> Fixed

x-component of transformed y-basis vector. For variation, use varIndexBase + 2.

Source

pub fn yy(&self) -> Fixed

y-component of transformed y-basis vector. For variation, use varIndexBase + 3.

Source

pub fn dx(&self) -> Fixed

Translation in x direction. For variation, use varIndexBase + 4.

Source

pub fn dy(&self) -> Fixed

Translation in y direction. For variation, use varIndexBase + 5.

Source

pub fn var_index_base(&self) -> u32

Base index into DeltaSetIndexMap.

Trait Implementations§

Source§

impl<'a> FontRead<'a> for VarAffine2x3<'a>

Source§

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

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