PangoXft.Renderer

g GObject.Object GObject.Object Pango.Renderer Pango.Renderer GObject.Object->Pango.Renderer PangoXft.Renderer PangoXft.Renderer Pango.Renderer->PangoXft.Renderer

Subclasses:

None

Methods

Inherited:

Pango.Renderer (19), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (display, screen)

set_default_color (default_color)

set_draw (draw)

Virtual Methods

Inherited:

Pango.Renderer (11), GObject.Object (7)

do_composite_glyphs (xft_font, glyphs, n_glyphs)

do_composite_trapezoids (part, trapezoids, n_trapezoids)

Properties

Name

Type

Flags

Short Description

display

int

w/co

The display being rendered to

screen

int

w/co

The screen being rendered to

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

display

xlib.Display

r

draw

xft.Draw

r

parent_instance

Pango.Renderer

r

screen

int

r

Class Details

class PangoXft.Renderer(**kwargs)
Bases:

Pango.Renderer

Abstract:

No

Structure:

PangoXft.RendererClass

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.

New in version 1.8.

classmethod new(display, screen)[source]
Parameters:
  • display (xlib.Display) – an X display

  • screen (int) – the index of the screen for display to which rendering will be done

Returns:

the newly created PangoXftRenderer

Return type:

Pango.Renderer

Create a new PangoXftRenderer to allow rendering Pango objects with the Xft library.

You must call PangoXft.Renderer.set_draw() before using the renderer.

New in version 1.8.

set_default_color(default_color)[source]
Parameters:

default_color (Pango.Color) – the default foreground color

Sets the default foreground color for a XftRenderer.

New in version 1.8.

set_draw(draw)[source]
Parameters:

draw (xft.Draw) – a xft.Draw

Sets the xft.Draw object that the renderer is drawing to. The renderer must not be currently active.

New in version 1.8.

do_composite_glyphs(xft_font, glyphs, n_glyphs) virtual
Parameters:

draw the specified glyphs using the current foreground color and other foreground attributes

do_composite_trapezoids(part, trapezoids, n_trapezoids) virtual
Parameters:

draw the specified trapezoids using the current color and other attributes for part

Property Details

PangoXft.Renderer.props.display
Name:

display

Type:

int

Default Value:

None

Flags:

WRITABLE, CONSTRUCT_ONLY

The display being rendered to

PangoXft.Renderer.props.screen
Name:

screen

Type:

int

Default Value:

0

Flags:

WRITABLE, CONSTRUCT_ONLY

The screen being rendered to