read_fonts::tables::colr

Type Alias ClipBoxFormat1

Source
pub type ClipBoxFormat1<'a> = TableRef<'a, ClipBoxFormat1Marker>;
Expand description

Aliased Type§

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

Implementations§

Source§

impl<'a> ClipBoxFormat1<'a>

Source

pub fn format(&self) -> u8

Set to 1.

Source

pub fn x_min(&self) -> FWord

Minimum x of clip box.

Source

pub fn y_min(&self) -> FWord

Minimum y of clip box.

Source

pub fn x_max(&self) -> FWord

Maximum x of clip box.

Source

pub fn y_max(&self) -> FWord

Maximum y of clip box.

Trait Implementations§

Source§

impl<'a> FontRead<'a> for ClipBoxFormat1<'a>

Source§

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

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