Gets the text direction at the given character position in @layout.
the byte index of the char
the text direction at @index
1.46
See Implementation
Gets the text direction at the given character position in @layout.