directionFromString
fn
harfbuzz.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
str | String to convert |
Returns
The #hb_direction_t matching str