read_fonts::tables::colr

Type Alias Affine2x3

Source
pub type Affine2x3<'a> = TableRef<'a, Affine2x3Marker>;
Expand description

Affine2x3 record

Aliased Type§

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

Implementations§

Source§

impl<'a> Affine2x3<'a>

Source

pub fn xx(&self) -> Fixed

x-component of transformed x-basis vector.

Source

pub fn yx(&self) -> Fixed

y-component of transformed x-basis vector.

Source

pub fn xy(&self) -> Fixed

x-component of transformed y-basis vector.

Source

pub fn yy(&self) -> Fixed

y-component of transformed y-basis vector.

Source

pub fn dx(&self) -> Fixed

Translation in x direction.

Source

pub fn dy(&self) -> Fixed

Translation in y direction.

Trait Implementations§

Source§

impl<'a> FontRead<'a> for Affine2x3<'a>

Source§

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

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