🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1230

Re: Font Size in & Leading in TextFrame

#1230
From: Peter Kahrel
Date: Mon, 16 Feb 2009 09:03
17 lines
1035 bytes
Henry,

Work on paragraphs, not characters, that should make a difference. And if there's a lot of text it pays to work on arrays, bot collections:

myParagraphs = myTextFrame.parentStory.paragraphs.everyItem().getElements(); 
while (myTextFrame.overflows) 
   { 
   for (i = 0; i < myParagraphs.length; i++) 
      { 
      myParagraphs[i].pointSize -= 0.1; 
      myParagraphs[i].leading = -0.1; 
      } 
   }



Peter
Technical Details
Message-ID: <59b7e751.1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
References: <59b7e751.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,ab79c448f8a23880
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Peter Kahrel" <kahrel@kahrel.plus.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Font Size in & Leading in TextFrame
Message-ID: <59b7e751.1@webcrossing.la2eafNXanI>
Date: Mon, 16 Feb 2009 01:03:20 -0800
References: <59b7e751.-1@webcrossing.la2eafNXanI>
Lines: 16
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit