pub type VariationRegionList<'a> = TableRef<'a, VariationRegionListMarker>;
Expand description
The VariationRegionList table
Aliased Type§
struct VariationRegionList<'a> { /* private fields */ }
Implementations§
Source§impl<'a> VariationRegionList<'a>
impl<'a> VariationRegionList<'a>
Sourcepub fn axis_count(&self) -> u16
pub fn axis_count(&self) -> u16
The number of variation axes for this font. This must be the same number as axisCount in the ‘fvar’ table.
Sourcepub fn region_count(&self) -> u16
pub fn region_count(&self) -> u16
The number of variation region tables in the variation region list. Must be less than 32,768.
Sourcepub fn variation_regions(&self) -> ComputedArray<'a, VariationRegion<'a>>
pub fn variation_regions(&self) -> ComputedArray<'a, VariationRegion<'a>>
Array of variation regions.
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.