read_fonts::tables::layout

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