Function

HarfBuzz-0.0HarfBuzzot_name_get_utf16Since 2.1.0

  • Fetches a font name from the OpenType 'name' table. If language is #HB_LANGUAGE_INVALID, English ("en") is assumed. Returns string in UTF-16 encoding. A NUL terminator is always written for convenience, and isn't included in the output text_size.

    Parameters

    • face: face_t

      font face.

    • name_id: number

      OpenType name identifier to fetch.

    • language: language_t

      language to fetch the name for.

    Returns [number, number[]]

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

    2.1.0