On 11/1/15, 3:21 AM, "Harbs" <harbs.li...@gmail.com> wrote:

>I forgot to respond to this.
>
>Yes. I could be a candidate to work on this. If I get some help, I’d be
>more inclined to work on a public port of TLF. If not, it’ll be MUCH
>easier to just hack together some code that I could use internally.
>
>FWIW, I’m not totally thrilled with Flash’s TextLine. The biggest problem
>with it is the fact that there’s no line return in the API. Another
>problem is there’s no way to do paragraph composition a la the Knuth and
>Plass line breaking algoirthm[1] using TextLine. (Well actually you
>probably could, but not exactly the way that Adobe has the APIs. You need
>to create lines one at a time.) I think there were other things that I
>wished were different when I was deep into TLF. If I do something akin to
>TLF for Javascript, I’d probably want to make it different. I guess there
>would be ways to abstract the differences, but it would be more work…
>
>
>[1]http://onlinelibrary.wiley.com/doi/10.1002/spe.4380111102/abstract

Maybe we’ll get a few more folks to chime in here.  IMO, we don’t really
have to work with TLF in FlexJS unless there is some
backward-compatibility reason to do so.  If there is some other JS text
library you’d rather work with, that would be fine with me.  Then the
question becomes: what do you need for text management on the SWF version?

You could just use TLF as a “mock” and know that the layout may not match
between SWF and HTML/JS/CSS but you don’t care because you are just using
the SWF version for testing and not deployment.

Or we could examine back porting that JS text library to AS.

If we do port TLF to JS, we have to abstract TextLine and could do so in a
way that makes TextLine replaceable by TextField on SWF and something else
in HTML/JS/CSS.  IMO, TextLine was primarily there to do right-to-left
text.

-Alex

Reply via email to