bufferGetGlyphPositions

Returns buffer glyph position array. Returned pointer is valid as long as buffer contents are not modified.

If buffer did not have positions before, the positions will be initialized to zeros, unless this function is called from within a buffer message callback (see harfbuzz.global.bufferSetMessageFunc), in which case NULL is returned.

Parameters

buffer harfbuzz.buffer.Buffer

An #hb_buffer_t

Return Value

Type: harfbuzz.glyph_position.GlyphPosition[]

The buffer glyph position array. The value valid as long as buffer has not been modified.