Type Alias read_fonts::tables::layout::Feature

source ·
pub type Feature<'a> = TableRef<'a, FeatureMarker>;
Expand description

Aliased Type§

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

Implementations§

source§

impl<'a> Feature<'a>

source

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

A constructor that requires additional arguments.

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

source§

impl<'a> Feature<'a>

source

pub fn feature_params_offset(&self) -> Nullable<Offset16>

Offset from start of Feature table to FeatureParams table, if defined for the feature and present, else NULL

source

pub fn feature_params(&self) -> Option<Result<FeatureParams<'a>, ReadError>>

Attempt to resolve feature_params_offset.

source

pub fn lookup_index_count(&self) -> u16

Number of LookupList indices for this feature

source

pub fn lookup_list_indices(&self) -> &'a [BigEndian<u16>]

Array of indices into the LookupList — zero-based (first lookup is LookupListIndex = 0)

Trait Implementations§

source§

impl<'a> Debug for Feature<'a>

source§

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

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

impl<'a> FontReadWithArgs<'a> for Feature<'a>

source§

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

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

impl ReadArgs for Feature<'_>

source§

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