This is the correct choice. There is no method named isRightToLeft() present in the TextLayout class. The correct method name is isLeftToRight() and it returns true if this TextLayout has a left-to-right base direction or false if it has a right-to-left base direction.