Since 2.7.3an HarfBuzz.buffer_t buffer.
the first item in buffer to serialize.
the last item in buffer to serialize.
the HarfBuzz.buffer_serialize_format_t to use for formatting the output.
the HarfBuzz.buffer_serialize_flags_t that control what glyph properties to serialize.
The number of serialized items.
Serializes
bufferinto a textual representation of its content, when the buffer contains Unicode codepoints (i.e., before shaping). This is useful for showing the contents of the buffer, for example during debugging. There are currently two supported serialization formats:text
A human-readable, plain text format. The serialized codepoints will look something like:
|U+=then HarfBuzz.glyph_info_t.cluster.json
A machine-readable, structured format. The serialized codepoints will be a list of objects with the following properties:
u: the Unicode codepoint as a decimal integercl: HarfBuzz.glyph_info_t.cluster if #HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS is not set.For example: