PgCairo.showGlyphItem

Draws the glyphs in @glyph_item in the specified cairo context, embedding the text associated with the glyphs in the output if the output format supports it (PDF for example), otherwise it acts similar to pango_cairo_show_glyph_string().

The origin of the glyphs (the left edge of the baseline) will be drawn at the current point of the cairo context.

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

struct PgCairo
static
void
showGlyphItem

Parameters

cr Context

a Cairo context

text string

the UTF-8 text that @glyph_item refers to

glyphItem PgGlyphItem

a #PangoGlyphItem

Meta

Since

1.22