Skip to main content
March 25, 2009
Question

Poloygon text

  • March 25, 2009
  • 1 reply
  • 914 views
Hello, was curious if anyone had any insight about making a TextFlow create lines in the form of any shape other than a rectangle, i know TextLineFactory only takes a Rectangle, and i also know you can make shapes out of text by setting a bunch of DisplayObjectContainerController in desired positions, but what i can not find is anyway to tell text to create lines using a vector shape or anything like the such, i would love to be able to drawl a spite and tell my textFlow to use it's bounds when creating lines. If this can't be done with the framework i may end up generating DisplayObjectContainerControllers using some cpu intensive hit tests on an object, but i don't want to go that route if i am just missing something the TextFramework will allow me to do now or after beta.
This topic has been closed for replies.

1 reply

March 27, 2009
did u try example from textlayout framework home page ? There is 1 example with rotated text container.

Hope this helps.
Minh
March 27, 2009
the "linked containers" example is the closest they get to fitting text within a complex shape and they are simply laying out DisplayObjectContainerControllers to look the shape they conform to, it does not show any automation.

I almost when through the whole API references and couldn't find anything, i am thinking my only option is to do a bunch of hit tests in order to figure out how to place display containers in a fashion similar to how indesign lays out text in complex containers.
August 3, 2009

Has anyone found anything more on this (using text in non-rectangular containers)?  I'll do it myself if I have to, but I'd like not to reinvent it if it's already been done.