read_fonts::tables::colr

Type Alias ClipBoxFormat2

Source
pub type ClipBoxFormat2<'a> = TableRef<'a, ClipBoxFormat2Marker>;
Expand description

Aliased Type§

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

Implementations§

Source§

impl<'a> ClipBoxFormat2<'a>

Source

pub fn format(&self) -> u8

Set to 2.

Source

pub fn x_min(&self) -> FWord

Minimum x of clip box. For variation, use varIndexBase + 0.

Source

pub fn y_min(&self) -> FWord

Minimum y of clip box. For variation, use varIndexBase + 1.

Source

pub fn x_max(&self) -> FWord

Maximum x of clip box. For variation, use varIndexBase + 2.

Source

pub fn y_max(&self) -> FWord

Maximum y of clip box. For variation, use varIndexBase + 3.

Source

pub fn var_index_base(&self) -> u32

Base index into DeltaSetIndexMap.

Trait Implementations§

Source§

impl<'a> FontRead<'a> for ClipBoxFormat2<'a>

Source§

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

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