directionFromString

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.

directionFromString
(
ubyte[] str
)

Parameters

str ubyte[]

String to convert

Return Value

Type: harfbuzz.types.Direction

The #hb_direction_t matching str