Method Cairo.Context()->glyph_path()


Method glyph_path

void glyph_path(array(Glyph|array(int|float)) glyphs)

Description

Adds closed paths for the glyphs to the current path. The generated path if filled, achieves an effect similar to that of show_glyphs().

Parameter glyphs

array of glyphs to show, with each glyph being represented either as a Glyph object or as an array of the following format:

Array
int 0

glyph index in the font. The exact interpretation of the glyph index depends on the font technology being used.

float|int 1

the offset in the X direction between the origin used for drawing the string and the origin of this glyph

float|int 2

the offset in the Y direction between the origin used for drawing the string and the origin of this glyph