PgRenderer.drawGlyphItem

Draws the glyphs in glyph_item with the specified PangoRenderer, embedding the text associated with the glyphs in the output if the output format supports it (PDF for example).

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

If text is NULL, this simply calls pango_renderer_draw_glyphs().

The default implementation of this method simply falls back to pango_renderer_draw_glyphs().

class PgRenderer
void
drawGlyphItem
(
string text
,,
int x
,
int y
)

Parameters

text string

the UTF-8 text that glyph_item refers to, or NULL

glyphItem PgGlyphItem
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.

Meta

Since

1.22