read_fonts::tables::colr

Type Alias PaintSolid

Source
pub type PaintSolid<'a> = TableRef<'a, PaintSolidMarker>;
Expand description

PaintSolid table

Aliased Type§

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

Implementations§

Source§

impl<'a> PaintSolid<'a>

Source

pub fn format(&self) -> u8

Set to 2.

Source

pub fn palette_index(&self) -> u16

Index for a CPAL palette entry.

Source

pub fn alpha(&self) -> F2Dot14

Alpha value.

Trait Implementations§

Source§

impl<'a> FontRead<'a> for PaintSolid<'a>

Source§

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

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