Type Alias read_fonts::tables::layout::CharacterVariantParams

source ·
pub type CharacterVariantParams<'a> = TableRef<'a, CharacterVariantParamsMarker>;
Expand description

featureParams for ‘cv01’-‘cv99’

Aliased Type§

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

Implementations§

source§

impl<'a> CharacterVariantParams<'a>

source

pub fn format(&self) -> u16

Format number is set to 0.

source

pub fn feat_ui_label_name_id(&self) -> NameId

The ‘name’ table name ID that specifies a string (or strings, for multiple languages) for a user-interface label for this feature. (May be NULL.)

source

pub fn feat_ui_tooltip_text_name_id(&self) -> NameId

The ‘name’ table name ID that specifies a string (or strings, for multiple languages) that an application can use for tooltip text for this feature. (May be NULL.)

source

pub fn sample_text_name_id(&self) -> NameId

The ‘name’ table name ID that specifies sample text that illustrates the effect of this feature. (May be NULL.)

source

pub fn num_named_parameters(&self) -> u16

Number of named parameters. (May be zero.)

source

pub fn first_param_ui_label_name_id(&self) -> NameId

The first ‘name’ table name ID used to specify strings for user-interface labels for the feature parameters. (Must be zero if numParameters is zero.)

source

pub fn char_count(&self) -> u16

The count of characters for which this feature provides glyph variants. (May be zero.)

source

pub fn character(&self) -> &'a [BigEndian<Uint24>]

The Unicode Scalar Value of the characters for which this feature provides glyph variants.

Trait Implementations§

source§

impl<'a> Debug for CharacterVariantParams<'a>

source§

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

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

impl<'a> FontRead<'a> for CharacterVariantParams<'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 CharacterVariantParams<'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.