pub type BaseValues<'a> = TableRef<'a, BaseValuesMarker>;
Expand description
BaseValues table
Aliased Type§
struct BaseValues<'a> { /* private fields */ }
Implementations§
Source§impl<'a> BaseValues<'a>
impl<'a> BaseValues<'a>
Sourcepub fn default_baseline_index(&self) -> u16
pub fn default_baseline_index(&self) -> u16
Index number of default baseline for this script — equals index position of baseline tag in baselineTags array of the BaseTagList
Sourcepub fn base_coord_count(&self) -> u16
pub fn base_coord_count(&self) -> u16
Number of BaseCoord tables defined — should equal baseTagCount in the BaseTagList
Sourcepub fn base_coord_offsets(&self) -> &'a [BigEndian<Offset16>]
pub fn base_coord_offsets(&self) -> &'a [BigEndian<Offset16>]
Array of offsets to BaseCoord tables, from beginning of BaseValues table — order matches baselineTags array in the BaseTagList
Sourcepub fn base_coords(&self) -> ArrayOfOffsets<'a, BaseCoord<'a>, Offset16>
pub fn base_coords(&self) -> ArrayOfOffsets<'a, BaseCoord<'a>, Offset16>
A dynamically resolving wrapper for base_coord_offsets
.
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.