draw_glyph_item


Description:

[ Version ( since = "1.22" ) ]
public virtual void draw_glyph_item (string? text, GlyphItem glyph_item, int x, int y)

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.

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 draw_layout_line or draw_layout.

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 [[email protected]_glyphs].

The default implementation of this method simply falls back to [[email protected]_glyphs].

Parameters:

this

a `PangoRenderer`

text

the UTF-8 text that glyph_item refers to

glyph_item

a `PangoGlyphItem`

x

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

y

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




2022 vala-language.org