pub type BaseCoordFormat2<'a> = TableRef<'a, BaseCoordFormat2Marker>;
Expand description
Aliased Type§
struct BaseCoordFormat2<'a> { /* private fields */ }
Implementations§
Source§impl<'a> BaseCoordFormat2<'a>
impl<'a> BaseCoordFormat2<'a>
Sourcepub fn base_coord_format(&self) -> u16
pub fn base_coord_format(&self) -> u16
Format identifier — format = 2
Sourcepub fn coordinate(&self) -> i16
pub fn coordinate(&self) -> i16
X or Y value, in design units
Sourcepub fn reference_glyph(&self) -> u16
pub fn reference_glyph(&self) -> u16
Glyph ID of control glyph
Sourcepub fn base_coord_point(&self) -> u16
pub fn base_coord_point(&self) -> u16
Index of contour point on the reference glyph
Source§impl<'a, T> TableRef<'a, T>
impl<'a, T> TableRef<'a, T>
Sourcepub fn resolve_offset<O: Offset, R: FontRead<'a>>(
&self,
offset: O,
) -> Result<R, ReadError>
pub fn resolve_offset<O: Offset, R: FontRead<'a>>( &self, offset: O, ) -> Result<R, ReadError>
Resolve the provided offset from the start of this table.
Sourcepub fn offset_data(&self) -> FontData<'a>
pub fn offset_data(&self) -> FontData<'a>
Return a reference to this table’s raw data.
We use this in the compile crate to resolve offsets.