Renderer.drawGlyphItem

Draws the glyphs in glyph_item with the specified pango.renderer.Renderer, embedding the text associated with the glyphs in the output if the output format supports it.

This is useful for rendering text in PDF.

Note that this method does not handle attributes in glyph_item. If you want colors, shapes and lines handled automatically according to those attributes, you need to use pango.renderer.Renderer.drawLayoutLine or pango.renderer.Renderer.drawLayout.

Note that text is the start of the text for layout, which is then indexed by glyph_item->item->offset.

If text is null, this simply calls pango.renderer.Renderer.drawGlyphs.

The default implementation of this method simply falls back to pango.renderer.Renderer.drawGlyphs.

class Renderer
void
drawGlyphItem

Parameters

text string

the UTF-8 text that glyph_item refers to

glyphItem pango.glyph_item.GlyphItem
x int

X position of left edge of baseline, in user space coordinates in Pango units

y int

Y position of left edge of baseline, in user space coordinates in Pango units