This PR introduces text direction to the Two.Text class. Now, you can specify if text is rendered from left to right or right to left. This is helpful for working with more languages, such as:
Arabic
Aramaic
Azeri
Dhivehi/Maldivian
Hebrew
Kurdish (Sorani)
Persian/Farsi
Urdu
Example usage:
const str = "تا زمانی که متوقف نشوید، مهم نیست که چقدر آهسته حرکت می کنید.";
const text = new Two.Text(str, two.width - 10, 50);
text.direction = 'rtl'; // Default is 'ltr'
This PR introduces text direction to the
Two.Text
class. Now, you can specify if text is rendered from left to right or right to left. This is helpful for working with more languages, such as:Example usage: