2.4 <PangoAttrFontFeatures>

Structure: <PangoAttrFontFeatures>

The <PangoAttrFontFeatures> structure is used to represent OpenType font features as an attribute.

Fields

attr

the common portion of the attribute

features

the features, as a string in CSS syntax

Procedures

Procedure: attr-font-features:attr self ⇒ attr
Procedure: attr-font-features:features self ⇒ features
Procedure: attr-font-features:new features ⇒ %return

Create a new font features tag attribute.

You can use this attribute to select OpenType font features like small-caps, alternative glyphs, ligatures, etc. for fonts that support them.

features

Passed: a string.

a string with OpenType font features, with the syntax of the [CSS font-feature-settings property](https://www.w3.org/TR/css-fonts-4/font-rend-desc)

%return

Returned: a <PangoAttribute>.

the newly allocated <PangoAttribute>, which should be freed with attribute:destroy