Merge "Improve textDirection APIs"