Function

HarfBuzz-0.0HarfBuzztag_from_stringSince 0.9.2

  • Converts a string into an HarfBuzz.tag_t. Valid tags are four characters. Shorter input strings will be padded with spaces. Longer input strings will be truncated.

    Parameters

    • str: string | Uint8Array<ArrayBufferLike>

      String to convert

    Returns number

    The HarfBuzz.tag_t corresponding to str

    0.9.2