Context.glyphAllocate

Allocates an array of cairo_glyph_t's. This function is only useful in implementations of cairo_user_scaled_font_text_to_glyphs_func_t where the user needs to allocate an array of glyphs that cairo will free. For all other uses, user can use their own allocation method for glyphs. This function returns NULL if num_glyphs is not positive, or if out of memory. That means, the NULL return value signals out-of-memory only if num_glyphs was positive. Since 1.8

class Context
static
glyphAllocate
()

Parameters

numGlyphs int

number of glyphs to allocate

Return Value

the newly allocated array of glyphs that should be freed using cairo_glyph_free()