Pango.AttrSize¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
absolute |
r/w |
whether the font size is in device units or points. This field is only present for compatibility with Pango-1.8.0 ( |
|
attr |
r/w |
the common portion of the attribute |
|
size |
r/w |
size of font, in units of 1/ |
Methods¶
class |
|
class |
|
Details¶
- class Pango.AttrSize¶
The
PangoAttrSize
structure is used to represent attributes which set font size.- classmethod new(size)[source]¶
- Parameters:
size (
int
) – the font size, inPango.SCALE
-ths of a point- Returns:
the newly allocated
PangoAttribute
, which should be freed with [method`Pango`.Attribute.destroy]- Return type:
Create a new font-size attribute in fractional points.
- classmethod new_absolute(size)[source]¶
- Parameters:
size (
int
) – the font size, inPango.SCALE
-ths of a device unit- Returns:
the newly allocated
PangoAttribute
, which should be freed with [method`Pango`.Attribute.destroy]- Return type:
Create a new font-size attribute in device units.
New in version 1.8.