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> Debug for ClipBoxFormat2<'a>

source§

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

Formats the value using the given formatter. Read more
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
source§

impl<'a> SomeTable<'a> for ClipBoxFormat2<'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.