read_fonts::tables::feat

Type Alias Feat

Source
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>

Source

pub fn version(&self) -> MajorMinor

Version number of the feature name table (0x00010000 for the current version).

Source

pub fn feature_name_count(&self) -> u16

The number of entries in the feature name array.

Source

pub fn names(&self) -> &'a [FeatureName]

The feature name array, sorted by feature type.

Source§

impl Feat<'_>

Source

pub fn find(&self, feature: u16) -> Option<FeatureName>

Returns the name for the given feature code.

Trait Implementations§

Source§

impl<'a> FontRead<'a> for Feat<'a>

Source§

fn read(data: FontData<'a>) -> Result<Self, ReadError>

Read an instance of Self from the provided data, performing validation. Read more
Source§

impl TopLevelTable for Feat<'_>

Source§

const TAG: Tag = _

feat