Function

HarfBuzz-0.0HarfBuzzbuffer_add_utf8Since 0.9.2

  • See hb_buffer_add_codepoints().

    Replaces invalid UTF-8 characters with the buffer replacement code point, see hb_buffer_set_replacement_codepoint().

    Parameters

    • buffer: buffer_t
    • text: string | Uint8Array<ArrayBufferLike>

      An array of UTF-8 characters to append.

    • item_offset: number

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

    • item_length: number

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

    Returns void

    0.9.2