Function

HarfBuzz-0.0HarfBuzzdirection_from_stringSince 0.9.2

  • Converts a string to an HarfBuzz.direction_t.

    Matching is loose and applies only to the first letter. For examples, "LTR" and "left-to-right" will both return #HB_DIRECTION_LTR.

    Unmatched strings will return #HB_DIRECTION_INVALID.

    Parameters

    • str: string | Uint8Array<ArrayBufferLike>

      String to convert

    Returns direction_t

    The HarfBuzz.direction_t matching str

    0.9.2