pub type Feat<'a> = TableRef<'a, FeatMarker>;
Expand description
The feature name table.
Aliased Type§
struct Feat<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Feat<'a>
impl<'a> Feat<'a>
Sourcepub fn version(&self) -> MajorMinor
pub fn version(&self) -> MajorMinor
Version number of the feature name table (0x00010000 for the current version).
Sourcepub fn feature_name_count(&self) -> u16
pub fn feature_name_count(&self) -> u16
The number of entries in the feature name array.
Sourcepub fn names(&self) -> &'a [FeatureName]
pub fn names(&self) -> &'a [FeatureName]
The feature name array, sorted by feature type.
Source§impl Feat<'_>
impl Feat<'_>
Sourcepub fn find(&self, feature: u16) -> Option<FeatureName>
pub fn find(&self, feature: u16) -> Option<FeatureName>
Returns the name for the given feature code.
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.