Type Alias read_fonts::tables::gpos::AnchorFormat2

source ·
pub type AnchorFormat2<'a> = TableRef<'a, AnchorFormat2Marker>;
Expand description

Anchor Table Format 2: Design Units Plus Contour Point

Aliased Type§

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

Implementations§

source§

impl<'a> AnchorFormat2<'a>

source

pub fn anchor_format(&self) -> u16

Format identifier, = 2

source

pub fn x_coordinate(&self) -> i16

Horizontal value, in design units

source

pub fn y_coordinate(&self) -> i16

Vertical value, in design units

source

pub fn anchor_point(&self) -> u16

Index to glyph contour point

Trait Implementations§

source§

impl<'a> Debug for AnchorFormat2<'a>

source§

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

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

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