What's the limitation of LTF on mobile?

201 views Asked by At

As we are targeting mobile in our Flex Mobile based project, we are using adobe text layout engine, ( TLF )

We've noticed that when typing in RTL language ( Arabic ) the cursor is at the beginning of text field, when text addition is at end of field ..

Any one had such behavior? We've noticed that this problem occurs only at mobile target.

What would be an alternative in-case this is a know limitation in Adobe TLF?

Thanks in advance!

1

There are 1 answers

2
davidkomer On

For Mobile text input you should ignore it altogether and use StageText as it will operate correctly using native device. Also allows mixing bilingual text etc. though it does not work with embedded fonts.

For output/rendering, TLFTextField works perfectly and can then be drawn to a Stage3D graphic, for example (on Mobile you are most likely wanting to use GPU graphics via something like Starling.)

So a workflow which some follow (myself, but maybe more importantly, Feathers), is to actually separate the two. When the user needs to edit, hide the TLFTextField and show a StageText pre-populated with the string. It will always be on top-most layer. When the user is done editing, hide the StageText and show the TLFTextField (or blit it to an Image) in the correct layer.