Pango.AttrFontFeatures

Fields

Name

Type

Access

Description

attr

Pango.Attribute

r/w

the common portion of the attribute

features

str

r/w

the features, as a string in CSS syntax

Methods

class

new (features)

Details

class Pango.AttrFontFeatures

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

New in version 1.38.

classmethod new(features)[source]
Parameters:

features (str) – a string with OpenType font features, with the syntax of the CSS font-feature-settings property

Returns:

the newly allocated PangoAttribute, which should be freed with [method`Pango`.Attribute.destroy]

Return type:

Pango.Attribute

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.

New in version 1.38.