Type Alias read_fonts::tables::ift::FeatureMap

source ·
pub type FeatureMap<'a> = TableRef<'a, FeatureMapMarker>;

Aliased Type§

struct FeatureMap<'a> { /* private fields */ }

Implementations§

source§

impl<'a> FeatureMap<'a>

source

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

A constructor that requires additional arguments.

This type requires some external state in order to be parsed.

source§

impl<'a> FeatureMap<'a>

source

pub fn feature_count(&self) -> u16

source

pub fn feature_records(&self) -> ComputedArray<'a, FeatureRecord>

source

pub fn entry_map_data(&self) -> &'a [u8]

source§

impl<'a> FeatureMap<'a>

source

pub fn entry_records_size( &self, max_entry_index: u16, ) -> Result<usize, ReadError>

Trait Implementations§

source§

impl<'a> Debug for FeatureMap<'a>

source§

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

Formats the value using the given formatter. Read more
source§

impl<'a> FontReadWithArgs<'a> for FeatureMap<'a>

source§

fn read_with_args(data: FontData<'a>, args: &u16) -> Result<Self, ReadError>

read an item, using the provided args. Read more
source§

impl ReadArgs for FeatureMap<'_>

source§

impl<'a> SomeTable<'a> for FeatureMap<'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.