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 On Oct 21, 2015, at 4:17 PM, Alex Harui <aha...@adobe.com> wrote: >> >> 4) The biggest kicker is text editing. I’m going to have to do a LOT of >> work getting text to render exactly in the HTML. I’m likely going to use >> txtjs to help, but that’s really only a start. Besides the actual text >> problem, trying to target both Flash and HTML seems like a total >> nightmare. > > IMO, you would be a candidate to try porting TLF to JS. Most of the code > doesn’t care too much about Flash. I think if you abstract the TextLine > you can get quite far.