Article View: adobe.scripting.indesign
Article #15810Re: AS-2.0.2-Horizontal Scaling of Text
From: Jay_Fraser
Date: Thu, 06 Nov 2003 00:56
Date: Thu, 06 Nov 2003 00:56
9 lines
1740 bytes
1740 bytes
Peter -- Yeah, I typed in the script, & it worked. The thing I noticed, however, was that the scaling was not uniform. I hope I can explain this OK: Let's say you have a story that is 100 words long, but only 90 words fit into your text frame. You have an overflow, so the script scales the text down to 99%. But, since you are telling this to the frame, only the 90 words that are in the frame are scaled. With those 90 words skinnier, 95 words fit in the frame ... and you still have an overflow. So the script scales all 95 words in the frame: the first 90 (that have been scaled twice) are now ~98%, and words 91-95 (which have only been scaled once) are 99%. At this point, all 100 words fit in the box, there is no overflow, & the script stops. The last 5 words have never been scaled, so they will show in the character pallete as 100% width. Anyway, that's my theory. I think you need to tell all the words in the parent story of the text in the frame to scale, but I'm not sure how to phrase it. Sorry, long explain, but couldn't think of a way to shorten it
Technical Details
Message-ID:
<2cce3956.7@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2cce3956.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,c53fbda946236634 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-11-05 17:07:55 PST From: Jay_Fraser@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: AS-2.0.2-Horizontal Scaling of Text Message-ID: <2cce3956.7@webx.la2eafNXanI> Date: Wed, 5 Nov 2003 16:56:15 -0800 References: <2cce3956.-1@webx.la2eafNXanI> Lines: 22 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit