pub type LangSys<'a> = TableRef<'a, LangSysMarker>;
Expand description
Aliased Type§
struct LangSys<'a> { /* private fields */ }
Implementations§
Source§impl LangSys<'_>
impl LangSys<'_>
Sourcepub fn feature_index_for_tag(
&self,
list: &FeatureList<'_>,
tag: Tag,
) -> Option<u16>
pub fn feature_index_for_tag( &self, list: &FeatureList<'_>, tag: Tag, ) -> Option<u16>
Source§impl<'a> LangSys<'a>
impl<'a> LangSys<'a>
Sourcepub fn required_feature_index(&self) -> u16
pub fn required_feature_index(&self) -> u16
Index of a feature required for this language system; if no required features = 0xFFFF
Sourcepub fn feature_index_count(&self) -> u16
pub fn feature_index_count(&self) -> u16
Number of feature index values for this language system — excludes the required feature
Sourcepub fn feature_indices(&self) -> &'a [BigEndian<u16>]
pub fn feature_indices(&self) -> &'a [BigEndian<u16>]
Array of indices into the FeatureList, in arbitrary order
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.