15 Replies Latest reply on May 8, 2009 9:56 AM by SSavar

    CS4 JS Text Frame dynamic size sorta


      I'm playing with the idea of sizing text boxes based on the text I want to place into it. What I'm hoping is that someone is going to answer with an actua existiing function that does this.


      Take the GraphicLabel script for example.


      I want to make the text frame just big enough to fit in the graphic filename.


      I can come close, by putting the filename string in a variable and grabbing the length. Then I can multiply that my a set number of points. But that's only mostly accurate, because of the different point widths of font characters. It's rough I mean.


      Is there somehting I can do to get it closer. Like a point length or something?