bufferAddUtf8

fnvoid bufferAddUtf8(harfbuzz.buffer.Buffer buffer, ubyte[] text, uint itemOffset, int itemLength)

See [harfbuzz.global.bufferAddCodepoints].

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

Parameters

bufferAn #hb_buffer_t
textAn array of UTF-8 characters to append.
itemOffsetThe offset of the first character to add to the buffer.
itemLengthThe number of characters to add to the buffer, or -1 for the end of text (assuming it is NULL terminated).