I want to draw a String while specifying beginning X and Y. For that purpose I use graphics.drawText(String, X, Y).
The problem is that the application supports arabic too. When the user changes to arabic, I want to draw the text beginning from an X and Y and go the other way.
English: ->
Arabic: <-
How to do that?
I’m not familiar with Java ME / Java on Blackberry, but in regular Java you could determine the length of the string in pixels with FontMetrics .
Then, you would use
The order of the text in Arabic remains the responsibility of the one who created the Arabic version of the string.
I hope this is applicable for your problem.