I'm writing a multi-lingual app that needs to display text via the drawtext command however I am having serious issues when I need to display right to left text such as arabic or hebrew.
Firstly, although the text appears correctly in the IDE, drawtext writes the text in the wrong direction (the letters of the word remain correct however they are written from left to right so the word is incorrect)
I added a function to reverse the letters of the string before displaying it with drawtext and while the order is then correct, another issue occurs. For arabic in particular the letters are drawn in their isolated forms and the flow of the word is destroyed.
I believe this is happening because of the vowel marks found in Arabic and Hebrew (Harakat and Niqqud). When I draw hebrew script the niqqud marks are displayed in the wrong place.
Is there any known way of fixing this error? Support for these two languages is an important part of my app.
I'd post some test code but the forum mangles the arabic and hebrew text :p
Firstly, although the text appears correctly in the IDE, drawtext writes the text in the wrong direction (the letters of the word remain correct however they are written from left to right so the word is incorrect)
I added a function to reverse the letters of the string before displaying it with drawtext and while the order is then correct, another issue occurs. For arabic in particular the letters are drawn in their isolated forms and the flow of the word is destroyed.
I believe this is happening because of the vowel marks found in Arabic and Hebrew (Harakat and Niqqud). When I draw hebrew script the niqqud marks are displayed in the wrong place.
Is there any known way of fixing this error? Support for these two languages is an important part of my app.
I'd post some test code but the forum mangles the arabic and hebrew text :p
