AttrSize#

class AttrSize(*args, **kwargs)#

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

Methods#

class AttrSize
classmethod new() Attribute#

Create a new font-size attribute in fractional points.

classmethod new_absolute() Attribute#

Create a new font-size attribute in device units.

Added in version 1.8.

Fields#

class AttrSize
absolute#
Whether the font size is in device units or points.

This field is only present for compatibility with Pango-1.8.0 (ABSOLUTE_SIZE was added in 1.8.1); and always will be False for SIZE and True for ABSOLUTE_SIZE.

attr#

The common portion of the attribute

size#
Size of font, in units of 1/SCALE of a point (for

SIZE) or of a device unit (for ABSOLUTE_SIZE)