:right-sidebar: True AttrSize =================================================================== .. currentmodule:: gi.repository.Pango .. class:: AttrSize(*args, **kwargs) :no-contents-entry: :Constructors: :: AttrSize() Methods ------- .. rst-class:: interim-class .. class:: AttrSize :no-index: .. method:: new(size: int) -> ~gi.repository.Pango.Attribute Create a new font-size attribute in fractional points. :param size: the font size, in :const:`~gi.repository.Pango.SCALE`-ths of a point .. method:: new_absolute(size: int) -> ~gi.repository.Pango.Attribute Create a new font-size attribute in device units. .. versionadded:: 1.8 :param size: the font size, in :const:`~gi.repository.Pango.SCALE`-ths of a device unit 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`)