:right-sidebar: True AttrSize =================================================================== .. currentmodule:: gi.repository.Pango .. class:: AttrSize(*args, **kwargs) :no-contents-entry: The ``PangoAttrSize`` structure is used to represent attributes which set font size. Methods ------- .. rst-class:: interim-class .. class:: AttrSize :no-index: .. classmethod:: new() -> ~gi.repository.Pango.Attribute Create a new font-size attribute in fractional points. .. classmethod:: new_absolute() -> ~gi.repository.Pango.Attribute Create a new font-size attribute in device units. .. versionadded:: 1.8 Fields ------ .. rst-class:: interim-class .. class:: AttrSize :no-index: .. attribute:: absolute Whether the font size is in device units or points. This field is only present for compatibility with Pango-1.8.0 (:const:`~gi.repository.Pango.AttrType.ABSOLUTE_SIZE` was added in 1.8.1); and always will be :const:`False` for :const:`~gi.repository.Pango.AttrType.SIZE` and :const:`True` for :const:`~gi.repository.Pango.AttrType.ABSOLUTE_SIZE`. .. attribute:: attr The common portion of the attribute .. attribute:: size Size of font, in units of 1/:const:`~gi.repository.Pango.SCALE` of a point (for :const:`~gi.repository.Pango.AttrType.SIZE`) or of a device unit (for :const:`~gi.repository.Pango.AttrType.ABSOLUTE_SIZE`)