:right-sidebar: True Fontset =================================================================== .. currentmodule:: gi.repository.Pango .. class:: Fontset(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Subclasses: :class:`~gi.repository.Pango.FontsetSimple` :Constructors: :: Fontset(**properties) Methods ------- .. rst-class:: interim-class .. class:: Fontset :no-index: .. method:: foreach(func: ~typing.Callable[[...], bool], *data: ~typing.Any) -> None Iterates through all the fonts in a fontset, calling ``func`` for each one. If ``func`` returns :const:`True`, that stops the iteration. .. versionadded:: 1.4 :param func: Callback function :param data: data to pass to the callback function .. method:: get_font(wc: int) -> ~gi.repository.Pango.Font Returns the font in the fontset that contains the best glyph for a Unicode character. :param wc: a Unicode character .. method:: get_metrics() -> ~gi.repository.Pango.FontMetrics Get overall metric information for the fonts in the fontset. Virtual Methods --------------- .. rst-class:: interim-class .. class:: Fontset :no-index: .. method:: do_foreach(func: ~typing.Callable[[...], bool], *data: ~typing.Any) -> None Iterates through all the fonts in a fontset, calling ``func`` for each one. If ``func`` returns :const:`True`, that stops the iteration. .. versionadded:: 1.4 :param func: Callback function :param data: data to pass to the callback function .. method:: do_get_font(wc: int) -> ~gi.repository.Pango.Font Returns the font in the fontset that contains the best glyph for a Unicode character. :param wc: a Unicode character .. method:: do_get_language() -> ~gi.repository.Pango.Language a function to get the language of the fontset. .. method:: do_get_metrics() -> ~gi.repository.Pango.FontMetrics Get overall metric information for the fonts in the fontset. Fields ------ .. rst-class:: interim-class .. class:: Fontset :no-index: .. attribute:: parent_instance