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
PangoXftRenderer
to 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
display
to which rendering will be done
Methods
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