pub type ItemVariationData<'a> = TableRef<'a, ItemVariationDataMarker>;
Expand description
The ItemVariationData subtable
Aliased Type§
struct ItemVariationData<'a> { /* private fields */ }
Implementations§
Source§impl<'a> ItemVariationData<'a>
impl<'a> ItemVariationData<'a>
Sourcepub fn item_count(&self) -> u16
pub fn item_count(&self) -> u16
The number of delta sets for distinct items.
Sourcepub fn word_delta_count(&self) -> u16
pub fn word_delta_count(&self) -> u16
A packed field: the high bit is a flag—see details below.
Sourcepub fn region_index_count(&self) -> u16
pub fn region_index_count(&self) -> u16
The number of variation regions referenced.
Sourcepub fn region_indexes(&self) -> &'a [BigEndian<u16>]
pub fn region_indexes(&self) -> &'a [BigEndian<u16>]
Array of indices into the variation region list for the regions referenced by this item variation data table.
Sourcepub fn delta_sets(&self) -> &'a [u8] ⓘ
pub fn delta_sets(&self) -> &'a [u8] ⓘ
Delta-set rows.
Source§impl<'a> ItemVariationData<'a>
impl<'a> ItemVariationData<'a>
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.