Skip to content

Pango.AttrSize

record (struct)

The PangoAttrSize structure is used to represent attributes which set font size.

Static functions

new

@staticmethod
def new(size: int) -> Attribute

Create a new font-size attribute in fractional points.

Parameters:

  • size — the font size, in SCALE-ths of a point

new_absolute

@staticmethod
def new_absolute(size: int) -> Attribute

Create a new font-size attribute in device units.

Parameters:

  • size — the font size, in SCALE-ths of a device unit

Properties

attr

attr: Attribute  # read/write

size

size: int  # read/write

absolute

absolute: int  # read/write