Hi Friends,
I am using GWT-g2d to render a text on a Surface. English only text or
Arabic only text is rendered without any problem, but if the text
contains both Arabic and English text in the same string, the order of
the word rendered in wrong way. I know this problem can be solved by
setting text direction to "rtl".
My question is how to set text direction in Surface. My code is as
below:
dc.setTextAlign(TextAlign.RIGHT)
.setFillStyle(KnownColor.BLACK)
.setFont(fStyle)
.setTextBaseline(TextBaseline.TOP)
.fillText(lineOfText.toString(), origin.X, origin.Y);
Where dc is a Surface.
Thanks.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.