Type Alias read_fonts::tables::colr::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> Debug for VarAffine2x3<'a>

source§

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

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

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