Type Alias read_fonts::tables::base::BaseCoordFormat2

source ·
pub type BaseCoordFormat2<'a> = TableRef<'a, BaseCoordFormat2Marker>;
Expand description

Aliased Type§

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

Implementations§

source§

impl<'a> BaseCoordFormat2<'a>

source

pub fn base_coord_format(&self) -> u16

Format identifier — format = 2

source

pub fn coordinate(&self) -> i16

X or Y value, in design units

source

pub fn reference_glyph(&self) -> u16

Glyph ID of control glyph

source

pub fn base_coord_point(&self) -> u16

Index of contour point on the reference glyph

Trait Implementations§

source§

impl<'a> Debug for BaseCoordFormat2<'a>

source§

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

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

impl<'a> FontRead<'a> for BaseCoordFormat2<'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 BaseCoordFormat2<'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.