🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19934

Re: Converting PM 6.5 Script to ID 2.0

#19934
From: Olav Kvern
Date: Thu, 14 Nov 2002 23:59
25 lines
1277 bytes
Vincent-- 

Fonts are objects--except for missing fonts, they belong to the Application object. So you get a reference to a font using something like this: 



Rem Given a reference to the InDesign.Application as "myInDesign" 
Set myFont to myInDesign.Fonts.Item("Trade Gothic") 




You could then apply it to the text in the frame using something like: 



Rem Given a reference to a text frame "myTextFrame" and a font "myFont" 
myTextFrame.ParentStory.Font = myFont 




Thanks, 

Ole
Technical Details
Message-ID: <1de68c0a.22@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de68c0a.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,ee4c9e7edd2bcb69
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-11-14 16:41:05 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Converting PM 6.5 Script to ID 2.0
Message-ID: <1de68c0a.22@WebX.la2eafNXanI>
Date: Thu, 14 Nov 2002 15:59:41 -0800
References: <1de68c0a.-1@WebX.la2eafNXanI>
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit