Type Alias ClipBoxFormat1

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

Aliased Type§

pub struct ClipBoxFormat1<'a> {
    pub(crate) shape: ClipBoxFormat1Marker,
    pub(crate) data: FontData<'a>,
}

Fields§

§shape: ClipBoxFormat1Marker§data: FontData<'a>

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 instance 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.