read_fonts::tables::colr

Type Alias PaintComposite

Source
pub type PaintComposite<'a> = TableRef<'a, PaintCompositeMarker>;
Expand description

Aliased Type§

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

Implementations§

Source§

impl<'a> PaintComposite<'a>

Source

pub fn format(&self) -> u8

Set to 32.

Source

pub fn source_paint_offset(&self) -> Offset24

Offset to a source Paint table.

Source

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

Attempt to resolve source_paint_offset.

Source

pub fn composite_mode(&self) -> CompositeMode

A CompositeMode enumeration value.

Source

pub fn backdrop_paint_offset(&self) -> Offset24

Offset to a backdrop Paint table.

Source

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

Attempt to resolve backdrop_paint_offset.

Trait Implementations§

Source§

impl<'a> FontRead<'a> for PaintComposite<'a>

Source§

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

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