Skip to content

Pango.AttrFontDesc

record (struct)

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

Static functions

new

@staticmethod
def new(desc: FontDescription) -> Attribute

Create a new font description attribute.

This attribute allows setting family, style, weight, variant, stretch, and size simultaneously.

Parameters:

  • desc — the font description

Properties

attr

attr: Attribute  # read/write

desc

desc: FontDescription  # read/write