Merge "Implement textDirection heuristic selection."