Pango.AttrSize¶
Fields¶
| Name | Type | Access | Description | 
|---|---|---|---|
| absolute | int | r/w | whether the font size is in device units or points. This field is only present for compatibility with Pango-1.8.0 ( Pango.AttrType.ABSOLUTE_SIZEwas added in 1.8.1); and always will beFalseforPango.AttrType.SIZEandTrueforPango.AttrType.ABSOLUTE_SIZE. | 
| attr | Pango.Attribute | r/w | the common portion of the attribute | 
| size | int | r/w | size of font, in units of 1/ Pango.SCALEof a point (forPango.AttrType.SIZE) or of a device uni (forPango.AttrType.ABSOLUTE_SIZE) | 
Methods¶
| class | new(size) | 
| class | new_absolute(size) | 
Details¶
- 
class Pango.AttrSize¶
- The - Pango.AttrSizestructure is used to represent attributes which set font size.- 
classmethod new(size)[source]¶
- Parameters: - size ( - int) – the font size, in %PANGO_SCALEths of a point.- Returns: - the newly allocated - Pango.Attribute, which should be freed with- Pango.Attribute.destroy().- Return type: - Pango.Attribute- Create a new font-size attribute in fractional points. 
 - 
classmethod new_absolute(size)[source]¶
- Parameters: - size ( - int) – the font size, in %PANGO_SCALEths of a device unit.- Returns: - the newly allocated - Pango.Attribute, which should be freed with- Pango.Attribute.destroy().- Return type: - Pango.Attribute- Create a new font-size attribute in device units. - New in version 1.8. 
 
- 
classmethod