🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19585

Re: Font Size vs Text Frame Height

#19585
From: Olav Kvern
Date: Fri, 06 Dec 2002 22:02
9 lines
1442 bytes
Bill--

If the text frame already exists, this is very easy: All you need to know is the position of the first baseline of the text in the text frame. While you could calculate this, why not get the value of TextFrame.TextLines.Item(1).Baseline, then subtract the position of the top of the text frame from that value, and be done with it?

If you're creating the text frame, why not calculate the text frame height based on the size the user enters? If the user chooses 18 points, for example, make the text frame 24 points tall (18+(18/3)), then check the first baseline location and adjust the height of the text frame accordingly. There are other ways to do this, but this is probably the easiest.

Thanks,

Ole
Technical Details
Message-ID: <1de6d022.6@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de6d022.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,a67dd80e0fded5c6
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-12-06 14:07:56 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Font Size vs Text Frame Height
Message-ID: <1de6d022.6@WebX.la2eafNXanI>
Date: Fri, 6 Dec 2002 14:02:09 -0800
References: <1de6d022.-1@WebX.la2eafNXanI>
Lines: 18
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit