Type Alias read_fonts::tables::colr::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> Debug for ClipBoxFormat1<'a>

source§

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

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

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

source§

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

Read an instace of Self from the provided data, performing validation. Read more
source§

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