bufferAddUtf8

See harfbuzz.global.bufferAddCodepoints.

Replaces invalid UTF-8 characters with the buffer replacement code point, see harfbuzz.global.bufferSetReplacementCodepoint.

void
bufferAddUtf8

Parameters

buffer harfbuzz.buffer.Buffer

An #hb_buffer_t

text ubyte[]

An array of UTF-8 characters to append.

itemOffset uint

The offset of the first character to add to the buffer.

itemLength int

The number of characters to add to the buffer, or -1 for the end of text (assuming it is NULL terminated).