read_fonts::tables::ift

Type Alias 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> 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<'_>