Type Alias StylisticSetParams

Source
pub type StylisticSetParams<'a> = TableRef<'a, StylisticSetParamsMarker>;

Aliased Type§

pub struct StylisticSetParams<'a> {
    pub(crate) shape: StylisticSetParamsMarker,
    pub(crate) data: FontData<'a>,
}

Fields§

§shape: StylisticSetParamsMarker§data: FontData<'a>

Implementations§

Source§

impl<'a> StylisticSetParams<'a>

Source

pub fn version(&self) -> u16

Source

pub fn ui_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.

The value of uiLabelNameId is expected to be in the font-specific name ID range (256-32767), though that is not a requirement in this Feature Parameters specification. The user-interface label for the feature can be provided in multiple languages. An English string should be included as a fallback. The string should be kept to a minimal length to fit comfortably with different application interfaces.

Trait Implementations§

Source§

impl<'a> Debug for StylisticSetParams<'a>

Source§

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

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

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