directionFromString

fnharfbuzz.types.Direction directionFromString(ubyte[] str)

Converts a string to an #hb_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

strString to convert

Returns

The #hb_direction_t matching str