The value valid as long as buffer has not been modified.
bufferGetGlyphPositions
fn
harfbuzz.glyph_position.GlyphPosition[] bufferGetGlyphPositions(harfbuzz.buffer.Buffer buffer)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 | An #hb_buffer_t |
Returns
The buffer glyph position array.