pub type Stat<'a> = TableRef<'a, StatMarker>;
Expand description
STAT (Style Attributes Table)
Aliased Type§
struct Stat<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Stat<'a>
impl<'a> Stat<'a>
Sourcepub fn version(&self) -> MajorMinor
pub fn version(&self) -> MajorMinor
Major/minor version number. Set to 1.2 for new fonts.
Sourcepub fn design_axis_size(&self) -> u16
pub fn design_axis_size(&self) -> u16
The size in bytes of each axis record.
Sourcepub fn design_axis_count(&self) -> u16
pub fn design_axis_count(&self) -> u16
The number of axis records. In a font with an ‘fvar’ table, this value must be greater than or equal to the axisCount value in the ‘fvar’ table. In all fonts, must be greater than zero if axisValueCount is greater than zero.
Sourcepub fn design_axes_offset(&self) -> Offset32
pub fn design_axes_offset(&self) -> Offset32
Offset in bytes from the beginning of the STAT table to the start of the design axes array. If designAxisCount is zero, set to zero; if designAxisCount is greater than zero, must be greater than zero.
Sourcepub fn design_axes(&self) -> Result<&'a [AxisRecord], ReadError>
pub fn design_axes(&self) -> Result<&'a [AxisRecord], ReadError>
Attempt to resolve design_axes_offset
.
Sourcepub fn axis_value_count(&self) -> u16
pub fn axis_value_count(&self) -> u16
The number of axis value tables.
Sourcepub fn offset_to_axis_value_offsets(&self) -> Nullable<Offset32>
pub fn offset_to_axis_value_offsets(&self) -> Nullable<Offset32>
Offset in bytes from the beginning of the STAT table to the start of the design axes value offsets array. If axisValueCount is zero, set to zero; if axisValueCount is greater than zero, must be greater than zero.
Sourcepub fn offset_to_axis_values(
&self,
) -> Option<Result<AxisValueArray<'a>, ReadError>>
pub fn offset_to_axis_values( &self, ) -> Option<Result<AxisValueArray<'a>, ReadError>>
Attempt to resolve offset_to_axis_value_offsets
.
Sourcepub fn elided_fallback_name_id(&self) -> Option<NameId>
pub fn elided_fallback_name_id(&self) -> Option<NameId>
Name ID used as fallback when projection of names into a particular font model produces a subfamily name containing only elidable elements.