I don't think you can use swc's in OpenFL if the target is not
flashplayer ( well coded swf's loaded into openfl will loose the as3
code ) but you could try decompiling the ABC using hxformat on the
TextLayout.swc I believe it's as as3 implementation. But not sure if
the textLayout as3 code would work in OpenFL or be setup only for
flashplayer, and to me atleast it does not seem legitimate to
deconstruct the TextLayout without Adobe consent. Theoretically similar
to what I suggested you could create kerning data using hxswfml and the
font and then just use a textfield for each letter and code the layout
to type left to right.
So basically you would do a lookup for every pair of letters from a
pre-created fontKerning hash of some sort.
var dSpace = kern.get( 'a_b' );
I am not sure if OpenFL when creating the bitmaps used for font in c++
language processes kern, but you can probably modify the code of how it
lays out letters. I would think if you dug deep everything is there for
OpenFL c++ target to be amended to allow writing left to right, it's
just likely to be some effort.
Samir Sabri:
> Thanks for the valuable info, so if I you embed needed TextLayout in swc
> file, you can use it in your openFL project?!
> As for the class that reformat Arabic string with the correct character, it
> would be a great open source project if your company allows .. that's sad ..
> But I think, the key to reformat arabic characters is to use unit code of
> each letter in all possible shapes, right?
>
> Thanks for sharing your experience,
> Samir
>
>
> On Fri, Nov 29, 2013 at 1:39 AM, Tom <
hortoba...@gmail.com> wrote:
>
>> Hi Simo!
>>
>> I have two methods:
>> 1. I have made an SWC with embedding the needed TextLayout Framework, with
>> TLFTextField. Because Haxe can't include any font embed as CFF, the
>> anti-aliasing is bad, and ugly.
>> 2. So I write a class, which can reformat an Arabic string with the
>> correct character code, to connect them. (Sorry for that, but I can't let
>> this code to public, because my company doesn't allow it. There are some
>> partially working/buggy implementation out there, just need to fix them...)
>>
>> If You need a good looking, anti-aliased input field, then You must use
>> CFF embedded font, from Adobe Flash, or do some trick.
>>
>> Best regards!
>> Tom
>>
>> 2013. november 28., cs�t�rt�k 14:13:47 UTC+1 id�pontban simo a k�vetkez�t
>> �rta:
>>
>>> Hello Tom,
>>>
>>> I like to know about your case please, did you manage to view arabic
>>> text, with letters connected correctly?
>>>
>>> On Saturday, May 4, 2013 8:49:56 AM UTC+3, Tom wrote:
>>>>
>>>> Thanks for Your effort! I will try this. And beside it, maybe I will
>>>> write a class, which can "reshape" any Arabic text into well formatted and
>>>> connected character codes.
>>>>
>>>> 2013. m�jus 3., p�ntek 23:25:04 UTC+2 id�pontban JLM a k�vetkez�t �rta: