pub type TupleVariationHeader<'a> = TableRef<'a, TupleVariationHeaderMarker>;
Expand description
Aliased Type§
struct TupleVariationHeader<'a> { /* private fields */ }
Implementations§
Source§impl<'a> TupleVariationHeader<'a>
impl<'a> TupleVariationHeader<'a>
Source§impl<'a> TupleVariationHeader<'a>
impl<'a> TupleVariationHeader<'a>
Sourcepub fn variation_data_size(&self) -> u16
pub fn variation_data_size(&self) -> u16
The size in bytes of the serialized data for this tuple variation table.
Sourcepub fn tuple_index(&self) -> TupleIndex
pub fn tuple_index(&self) -> TupleIndex
A packed field. The high 4 bits are flags (see below). The low 12 bits are an index into a shared tuple records array.
Source§impl<'a> TupleVariationHeader<'a>
impl<'a> TupleVariationHeader<'a>
Sourcepub fn peak_tuple(&self) -> Option<Tuple<'a>>
pub fn peak_tuple(&self) -> Option<Tuple<'a>>
Peak tuple record for this tuple variation table — optional, determined by flags in the tupleIndex value. Note that this must always be included in the ‘cvar’ table.
Sourcepub fn intermediate_start_tuple(&self) -> Option<Tuple<'a>>
pub fn intermediate_start_tuple(&self) -> Option<Tuple<'a>>
Intermediate start tuple record for this tuple variation table — optional, determined by flags in the tupleIndex value.
Sourcepub fn intermediate_end_tuple(&self) -> Option<Tuple<'a>>
pub fn intermediate_end_tuple(&self) -> Option<Tuple<'a>>
Intermediate end tuple record for this tuple variation table — optional, determined by flags in the tupleIndex value.
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.