Type Alias read_fonts::tables::feat::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<'a> Feat<'a>

source

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

Returns the name for the given feature code.

Trait Implementations§

source§

impl<'a> Debug for Feat<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
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<'a> SomeTable<'a> for Feat<'a>

source§

fn type_name(&self) -> &str

The name of this table
source§

fn get_field(&self, idx: usize) -> Option<Field<'a>>

Access this table’s fields, in declaration order.
source§

impl TopLevelTable for Feat<'_>

source§

const TAG: Tag = _

feat