read_fonts::tables::colr

Type Alias PaintTransform

Source
pub type PaintTransform<'a> = TableRef<'a, PaintTransformMarker>;
Expand description

Aliased Type§

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

Implementations§

Source§

impl<'a> PaintTransform<'a>

Source

pub fn format(&self) -> u8

Set to 12.

Source

pub fn paint_offset(&self) -> Offset24

Offset to a Paint subtable.

Source

pub fn paint(&self) -> Result<Paint<'a>, ReadError>

Attempt to resolve paint_offset.

Source

pub fn transform_offset(&self) -> Offset24

Offset to an Affine2x3 table.

Source

pub fn transform(&self) -> Result<Affine2x3<'a>, ReadError>

Attempt to resolve transform_offset.

Trait Implementations§

Source§

impl<'a> FontRead<'a> for PaintTransform<'a>

Source§

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

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