I'm creating a multilingual PDF in Illustrator with variables and would like to use single line text area boxes to control type. However, in some languages, the text will be very long. Can I set a specific font size for the text area, and then if the text exceeds its box, have it warp, shrink, or decrease tracking to fit? I do not want it to wrap to a new line.
I'm using ExtendScript to try to do this in many steps and keep running into limitations. In order to get the width of the actual text, I'm converting it to point type using convertAreaObjectToPointObject()
which does work when the text is smaller than its box. If it overflows, the method always clips just like its GUI equivalent under Type > Convert to Point Type.
Extending the area type width programmatically before converting to point to avoid clipping using .width
stretches the type instead of its containing box. Is there another method I should use which simulates grabbing the area type expansion edge?