Pango.AttrFontDesc

Fields

Name Type Access Description
attr Pango.Attribute r/w the common portion of the attribute
desc Pango.FontDescription r/w the font description which is the value of this attribute

Methods

class new (desc)

Details

class Pango.AttrFontDesc

The Pango.AttrFontDesc structure is used to store an attribute that sets all aspects of the font description at once.

classmethod new(desc)[source]
Parameters:desc (Pango.FontDescription) – the font description
Returns:the newly allocated Pango.Attribute, which should be freed with Pango.Attribute.destroy().
Return type:Pango.Attribute

Create a new font description attribute. This attribute allows setting family, style, weight, variant, stretch, and size simultaneously.