AttrSize

class AttrSize(*args, **kwargs)

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

Methods

class AttrSize
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(size: int) Attribute

Create a new font-size attribute in device units.

Added in version 1.8.

Parameters:

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

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)