read_fonts::tables::colr

Type Alias LayerList

source
pub type LayerList<'a> = TableRef<'a, LayerListMarker>;
Expand description

LayerList table

Aliased Type§

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

Implementations§

source§

impl<'a> LayerList<'a>

source

pub fn num_layers(&self) -> u32

source

pub fn paint_offsets(&self) -> &'a [BigEndian<Offset32>]

Offsets to Paint tables.

source

pub fn paints(&self) -> ArrayOfOffsets<'a, Paint<'a>, Offset32>

A dynamically resolving wrapper for paint_offsets.

Trait Implementations§

source§

impl<'a> Debug for LayerList<'a>

source§

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

Formats the value using the given formatter. Read more
source§

impl<'a> FontRead<'a> for LayerList<'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 LayerList<'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.