pub type BaseCoordFormat3<'a> = TableRef<'a, BaseCoordFormat3Marker>;
Expand description
Aliased Type§
struct BaseCoordFormat3<'a> { /* private fields */ }
Implementations§
Source§impl<'a> BaseCoordFormat3<'a>
impl<'a> BaseCoordFormat3<'a>
Sourcepub fn base_coord_format(&self) -> u16
pub fn base_coord_format(&self) -> u16
Format identifier — format = 3
Sourcepub fn coordinate(&self) -> i16
pub fn coordinate(&self) -> i16
X or Y value, in design units
Sourcepub fn device_offset(&self) -> Nullable<Offset16>
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).
Sourcepub fn device(&self) -> Option<Result<DeviceOrVariationIndex<'a>, ReadError>>
pub fn device(&self) -> Option<Result<DeviceOrVariationIndex<'a>, ReadError>>
Attempt to resolve device_offset
.
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.