Type Alias VarAffine2x3

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

VarAffine2x3 record

Aliased Type§

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

Fields§

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

Implementations§

Source§

impl VarAffine2x3<'_>

Source

fn v1_closure(&self, c: &mut Colrv1ClosureContext<'_>)

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.