findBaseDir

fnpango.types.Direction findBaseDir(string text)

Searches a string the first character that has a strong direction, according to the Unicode bidirectional algorithm.

Parameters

textthe text to process. Must be valid UTF-8

Returns

The direction corresponding to the first strong character.

If no such character is found, then [pango.types.Direction.Neutral] is returned.