Gets the text direction at the given character position in layout.
the byte index of the char
the text direction at index
Gets the text direction at the given character position in layout.