:right-sidebar: True FontsetSimple =================================================================== .. currentmodule:: gi.repository.Pango .. class:: FontsetSimple(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Pango.Fontset`, :class:`~gi.repository.GObject.Object` ``PangoFontsetSimple`` is a implementation of the abstract ``PangoFontset`` base class as an array of fonts. When creating a ``PangoFontsetSimple``\, you have to provide the array of fonts that make up the fontset. Constructors ------------ .. rst-class:: interim-class .. class:: FontsetSimple :no-index: .. classmethod:: new(language: ~gi.repository.Pango.Language) -> ~gi.repository.Pango.FontsetSimple Creates a new ``PangoFontsetSimple`` for the given language. :param language: a ``PangoLanguage`` tag Methods ------- .. rst-class:: interim-class .. class:: FontsetSimple :no-index: .. method:: append(font: ~gi.repository.Pango.Font) -> None Adds a font to the fontset. The fontset takes ownership of ``font``\. :param font: a ``PangoFont``\. .. method:: size() -> int Returns the number of fonts in the fontset.