read_fonts::tables::colr

Type Alias PaintColrLayers

Source
pub type PaintColrLayers<'a> = TableRef<'a, PaintColrLayersMarker>;
Expand description

Aliased Type§

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

Implementations§

Source§

impl<'a> PaintColrLayers<'a>

Source

pub fn format(&self) -> u8

Set to 1.

Source

pub fn num_layers(&self) -> u8

Number of offsets to paint tables to read from LayerList.

Source

pub fn first_layer_index(&self) -> u32

Index (base 0) into the LayerList.

Trait Implementations§

Source§

impl<'a> FontRead<'a> for PaintColrLayers<'a>

Source§

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

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