read_fonts::tables::colr

Type Alias PaintTranslate

Source
pub type PaintTranslate<'a> = TableRef<'a, PaintTranslateMarker>;
Expand description

Aliased Type§

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

Implementations§

Source§

impl<'a> PaintTranslate<'a>

Source

pub fn format(&self) -> u8

Set to 14.

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 dx(&self) -> FWord

Translation in x direction.

Source

pub fn dy(&self) -> FWord

Translation in y direction.

Trait Implementations§

Source§

impl<'a> FontRead<'a> for PaintTranslate<'a>

Source§

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

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