Type Alias BaseCoordFormat3

Source
pub type BaseCoordFormat3<'a> = TableRef<'a, BaseCoordFormat3Marker>;
Expand description

Aliased Type§

pub struct BaseCoordFormat3<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> BaseCoordFormat3<'a>

Source

pub fn base_coord_format(&self) -> u16

Format identifier — format = 3

Source

pub fn coordinate(&self) -> i16

X or Y value, in design units

Source

pub fn device_offset(&self) -> Nullable<Offset16>

Offset to Device table (non-variable font) / Variation Index table (variable font) for X or Y value, from beginning of BaseCoord table (may be NULL).

Source

pub fn device(&self) -> Option<Result<DeviceOrVariationIndex<'a>, ReadError>>

Attempt to resolve device_offset.

Trait Implementations§

Source§

impl<'a> FontRead<'a> for BaseCoordFormat3<'a>

Source§

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

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