Issues with Arabic in Mac OS X with Flash 10 / Flex Gumbo


i've been looking @ converting existing flex 3 project have arabic language version, have been looking @ tlf that. intended use components using tlf in 3.2, looks may need use gumbo font embedding.

i'm using textflow create editable input box , far i've run number of odd behaviours; can explain might going wrong, or easy workaround?

 

this code i've been playing test:

 

<code>

private static const textinput:xml = <textflow xmlns="http://ns.adobe.com/textlayout/2008">
                            <div><p><![cdata[اتحاد الصحفيين العرب يدينس]]></p>
                            <p>\u064a\u0648\u0644\u062f \u062c\u0645\u064a\u0639 \u0627</p></div>
                             </textflow>;

[embed(source="./fonts/adobearabic-regular.otf", fontname="adobe arabic", cff="true")]
private var arabicfont:class;

 

private function initapp():void
{

    var textflow:textflow = textfilter.importtoflow(textinput, textfilter.text_layout_format);
    textflow.direction = direction.rtl;
   
    var cf:characterformat = new characterformat(textflow.characterformat);
    cf.locale = 'ar';

    cf.ligaturelevel = ligaturelevel.exotic;

    cf.fontfamily = "adobe arabic";
   
    cf.fontlookup = fontlookup.embedded_cff;
    textflow.characterformat = cf;
   
   
    var sprite:uicomponent = new uicomponent();
    sprite.x = 20;
    sprite.y = 20;
    sprite.width = 200;
    sprite.height = 100;
    var controller:icontainercontroller = new displayobjectcontainercontroller(sprite, 200, 100);
    textflow.flowcomposer.addcontroller(controller);
    textflow.interactionmanager = new editmanager();
    textflow.flowcomposer.updateallcontainers();
   
    addchild(sprite);

 

 

}

</code>

 

i've found i've had use cff embedding have font showing correctly , not garbling characters. however, cff embedding on, i've found mac os x keyboard inputs come out garbled roman characters rather arabic.i'm sure there examples of arabic working in os x though - there particular how i'm setting textflow causing problem?

 

thanks in advance responses.

euan,

 

this known issue listed in release notes. copied release notes:

 

[limitations on keyboard input of international scripts: international scripts using unicode encoding cannot typed flash player 10 on macintosh os or windows. while writing scripts supported flash player 10 can displayed correctly, keyboard input of these scripts may not function. keyboard input work correctly several writing scripts including roman, chinese, japanese, cyrillic, , central european languages on both windows , macintosh. on windows platform, typing works correctly writing scripts such arabic, hebrew or thai have windows codepages.]

 

abhishek

(adobe systems inc.)



More discussions in Text Layout Framework


adobe

Comments

Popular posts from this blog

Flip address is out of range arduino uno r3

Arduino Uno not uploading

Indesign and MathType fonts