08-15-2012 03:37 PM - edited 08-15-2012 03:38 PM
Is there any plans to add right-to-left language support to fuse.ui.text.label? I'm currently using TLFTextField to provide support for RTL in my apps, but the performance is extremely poor (barely useable at best). I understand TLFTextField is extremely heavy, and am hoping for a lightweight solution suitable for mobile use.
08-16-2012 02:31 AM - edited 08-16-2012 02:41 AM
might be a stupid question, but can't you use a classic textfield and set the scaleX property to -1? this should flip over the textfield et voila rtl text
08-16-2012 05:09 AM
do you mean right-aligned text? because with the old qnx.text.labels I think you could go deeper and access the single children until you would get a standard plain old flash.text.textfield or sth where you could easily do that
other than that, I also have an app in appworld where I needed a text starting from the right. Something must have annoyed me alot, as my solution in the end was to to use a label, add the text, get textwidth and textheight after setting the text, and calculate the position with those values (something like textlabel.x = parent.width - textlabel.textwidth - buffer). I think it was because the textlabel had to be as small as possible
08-16-2012 11:45 AM
RTL text is not equivalent to a mirror image, each character must still face the right way, just arranged from right to left.
RTL languages are not supported by classic text.
08-16-2012 11:46 AM
08-16-2012 12:09 PM
RTL text is supported in the fuse components here - qnx.fuse.ui.text.TextAlign - https://developer.blackberry.com/air/beta/apis/qnx
You will need to use: TextAlign.START.