Article View: adobe.scripting.indesign
Article #1261Font Size in & Leading in TextFrame
From: HenryL
Date: Fri, 13 Feb 2009 12:43
Date: Fri, 13 Feb 2009 12:43
11 lines
1356 bytes
1356 bytes
Hi, I've a problem on font size and leading handle in textframe. There is a textframe with text on difference font size, for example, first line with font size 10 and 2nd line with size 12 .... and there are total 10 lines. With this 10 lines, the textframe is overflow. To make the textframe become not overflow, it need to decrease the font size and the leading by 0.1 in each characher of the textframe until the textframe not overflow. I've tried to loop through all the charachter inside the textframe and do the reduction (on character.pointsize and character.leading) but the performance is very low as there are many characters inside the textframe within those lines. Is there any faster way to make the font size and leading reduce in the Textframe until not overflow? Please advise. Thanks. HenryL
Technical Details
Message-ID:
<59b7e751.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,ab79c448f8a23880,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: HenryL@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Font Size in & Leading in TextFrame Message-ID: <59b7e751.-1@webcrossing.la2eafNXanI> Date: Fri, 13 Feb 2009 04:43:58 -0800 Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit