Renderer#
Added in version 1.8.
Superclasses: Renderer, 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#
- class Renderer
- classmethod new(display: Display, screen: int) Renderer#
Create a new
PangoXftRendererto allow rendering Pango objects with the Xft library.You must call
set_draw()before using the renderer.Added in version 1.8.
- Parameters:
display – an X display
screen – the index of the screen for
displayto which rendering will be done
Methods#
- class Renderer
- do_composite_glyphs(self, xft_font: Font, glyphs: GlyphSpec, n_glyphs: int) None#
- Parameters:
xft_font
glyphs
n_glyphs
- do_composite_trapezoids(self, part: RenderPart, trapezoids: XTrapezoid, n_trapezoids: int) None#
- Parameters:
part
trapezoids
n_trapezoids
Properties#
Virtual Methods#
- class Renderer
- do_composite_glyphs(xft_font: Font, glyphs: GlyphSpec, n_glyphs: int) None#
draw the specified glyphs using the current foreground color and other foreground attributes
- Parameters:
xft_font
glyphs
n_glyphs
- do_composite_trapezoids(part: RenderPart, trapezoids: XTrapezoid, n_trapezoids: int) None#
draw the specified trapezoids using the current color and other attributes for
part- Parameters:
part
trapezoids
n_trapezoids