freed using [cairo.glyph.Glyph.free]
glyphAllocate
fn
cairo.glyph.Glyph glyphAllocate(int numGlyphs)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.
Parameters
numGlyphs | number of glyphs to allocate |
Returns
the newly allocated array of glyphs that should be