I don't think Open Laszlo supports right to left text at all.
Getting Open Laszlo to support right to left text would probably take a fair amount of work, but it will be easier in 4.0.x than in previous versions, because it could mostly just be done in the kernel. I bet a lot of text measurement code would have to be tweaked, though.

So, Don, if you're interested in doing this, I'd say start off by looking at
WEB-INF/lps/lfc/kernel/swf/LzTextSprite.as
and its brother
WEB-INF/lps/lfc/kernel/dhtml/LzTextSprite.js

On Jun 20, 2007, at 6:14 PM, Don Hopkins wrote:

Does OpenLaszlo support Arabic text in Flash or DHTML?

I copied and pasted some Arabic text from Wikipedia into this test program:

<canvas
width="100%"
height="100%"
>

<text
fontsize="80"
resize="true"
>الصفحة الرئيسية</text>

</canvas>

When it renders, it looks a lot different from the same text on Wikipedia or Word, with the letters in the reverse order (so they are connected differently).

What does an OpenLaszlo program have to do to display Arabic text correctly, that it loads from an XML file?
Is it possible to right justify filled text?
I presume the labels and forms elements in the user interface will have to be rearranged and justified the other way, too. Does bidirectional text work the same way (or at all) in the Flash and DHTML runtime?

-Don



Benjamin Shine
Software Engineer, Open Laszlo / Laszlo Systems
[EMAIL PROTECTED]




Reply via email to