:right-sidebar: True Renderer =================================================================== .. currentmodule:: gi.repository.PangoXft .. versionadded:: 1.8 .. class:: Renderer(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Pango.Renderer`, :class:`~gi.repository.GObject.Object` ``PangoXftRenderer`` is a subclass of ``PangoRenderer`` used for rendering with Pango's Xft backend. It can be used directly, or it can be further subclassed to modify exactly how drawing of individual elements occurs. Constructors ------------ .. rst-class:: interim-class .. class:: Renderer :no-index: .. classmethod:: new(display: ~gi.repository.xlib.Display, screen: int) -> ~gi.repository.Pango.Renderer Create a new ``PangoXftRenderer`` to allow rendering Pango objects with the Xft library. You must call :func:`~gi.repository.PangoXft.Renderer.set_draw` before using the renderer. .. versionadded:: 1.8 :param display: an X display :param screen: the index of the screen for ``display`` to which rendering will be done Methods ------- .. rst-class:: interim-class .. class:: Renderer :no-index: .. method:: do_composite_glyphs(self, xft_font: ~gi.repository.xft.Font, glyphs: ~gi.repository.xft.GlyphSpec, n_glyphs: int) -> None :param xft_font: :param glyphs: :param n_glyphs: .. method:: do_composite_trapezoids(self, part: ~gi.repository.Pango.RenderPart, trapezoids: ~gi.repository.xlib.XTrapezoid, n_trapezoids: int) -> None :param part: :param trapezoids: :param n_trapezoids: .. method:: set_default_color(default_color: ~gi.repository.Pango.Color) -> None Sets the default foreground color for a XftRenderer. .. versionadded:: 1.8 :param default_color: the default foreground color .. method:: set_draw(draw: ~gi.repository.xft.Draw) -> None Sets the XftDraw object that the renderer is drawing to. The renderer must not be currently active. .. versionadded:: 1.8 :param draw: a XftDraw Properties ---------- .. rst-class:: interim-class .. class:: Renderer :no-index: .. attribute:: props.display :type: ~typing.Any .. attribute:: props.screen :type: int Virtual Methods --------------- .. rst-class:: interim-class .. class:: Renderer :no-index: .. method:: do_composite_glyphs(xft_font: ~gi.repository.xft.Font, glyphs: ~gi.repository.xft.GlyphSpec, n_glyphs: int) -> None The type of the None singleton. :param xft_font: :param glyphs: :param n_glyphs: .. method:: do_composite_trapezoids(part: ~gi.repository.Pango.RenderPart, trapezoids: ~gi.repository.xlib.XTrapezoid, n_trapezoids: int) -> None The type of the None singleton. :param part: :param trapezoids: :param n_trapezoids: Fields ------ .. rst-class:: interim-class .. class:: Renderer :no-index: .. attribute:: display .. attribute:: draw .. attribute:: parent_instance .. attribute:: priv .. attribute:: screen