ot_name_get_utf32


Description:


[ Version ( since = "2.1.0" ) ]
public uint ot_name_get_utf32 (Face face, OtNameId name_id, Language language, out unowned uint32[] text)

Fetches a font name from the OpenType 'name' table.

If language is HB_LANGUAGE_INVALID, English ("en") is assumed. Returns string in UTF-32 encoding. A NUL terminator is always written for convenience, and isn't included in the output text.length.

Parameters:

face

font face.

name_id

OpenType name identifier to fetch.

language

language to fetch the name for.

text

buffer to write fetched name into.

text_size

input size of text buffer, and output size of text written to buffer.

Returns:

full length of the requested string, or 0 if not found.


Namespace: HarfBuzz