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> Debug for Affine2x3<'a>

source§

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

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

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