Skip to main content
October 28, 2009
Question

Unicode support in Text Layout Framework ?

  • October 28, 2009
  • 1 reply
  • 4120 views

Following is the scenario

I am picking all the fonts from client machine and user can change by clicking on those. When clients operating system has different language selected such as “Hindi” or “Arabic” I am not able to type anything in text layout framework but if you see in notepad if you change OS language it changes the font automatically and user can type in that particulate font.

For example (In windows)

If my OS language is English in notepad if I type its shows English words

if I select Hindi language as OS language in notepad it shows Hindi but in text layout framework it shows Question mark.(you can try with text framework demo)

Is their any way to do this in Flex.

Mahesh

This topic has been closed for replies.

1 reply

October 28, 2009

Hi Mahesh,

As far as I know, I don't think text input for bi-directional text is possible, but I could be wrong.

I tried going here:

http://labs.adobe.com/technologies/textlayout/demos/

I selected Arabic Font and changed my system setting from British to Arabic,

i got some sample arabic text and pasted it in:

يَجِبُ عَلَى الإنْسَانِ أن يَكُونَ أمِيْنَاً وَصَادِقَاً مَعَ نَفْسِهِ وَمَعَ أَهْلِهِ وَجِيْرَانِهِ وَأَنْ يَبْذُلَ كُلَّ جُهْدٍ فِي إِعْلاءِ شَأْنِ الوَطَنِ وَأَنْ يَعْمَلَ عَلَى مَا يَجْلِبُ السَّعَادَةَ لِلنَّاسِ .

and it works, but If I try typing in from the keyboard while my system is set to Arabic, I only see english characters ...

I am working on a Mac and using firefox, not sure if this will be different on a Windows machine.

I think the framework so far supports displaying bidirectional text, and copying and pasting, but not actually inputting text directly .

I would be interested if you find a solution to this.

Adobe Employee
October 28, 2009

Can you tell us a little more about your environment? Are you on Mac or Wiindows? What browser are you using?

Thanks!

- robin

Adobe Employee
October 28, 2009

There is a bug in the Player that prevents Unicode text input from working correctly. This means that on the Mac, neither Arabic nor Hindi will work correctly. On Windows, Arabic works OK because it relies on the code page, but Hindi does not because it relies on Unicode. These bugs will be fixed in a future version of the Player.

There is still one additional bug, which is Unicode text entry through Firefox. I believe that this remaining issue will have to be fixed in Firefox.

I hope this clarifies the situation. If you have questions, or you are seeing results that are not explained by this, please let us know.

Thanks!

- robin