🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20984

Re: Zapf Dingbats

#20984
From: Olav Kvern
Date: Wed, 22 May 2002 18:24
9 lines
2256 bytes
Fredrik-- 

Here's an example. This enters Zapf Dingbats characters from Unicode E020 through E0F3 (that's pretty much the range of characters in the font--there's a gap from E08E through E0A0). 

Rem Zapf Dingbats example Dim myInDesign As InDesign.Application Rem Generate a list of Unicode strings covering the range of characters in Zapf Dingbats. myHexStrings = Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F") For myCounter1 = 2 To 15     myString = "E0" & myHexStrings(myCounter1)     For myCounter2 = 0 To 15         myStringList = myStringList & "<" & myString & myHexStrings(myCounter2) & ">" & vbCr     Next myCounter2 Next myCounter1 Set myInDesign = CreateObject("InDesign.Application.2.0") Set myDocument = myInDesign.Documents.Add Set myPage = myDocument.Pages.Item(1) Set myTextFrame = myPage.TextFrames.Add myY1 = myPage.MarginPreferences.MarginTop myX1 = myPage.MarginPreferences.MarginLeft myY2 = myDocument.DocumentPreferences.PageHeight - myPage.MarginPreferences.MarginBottom myX2 = myDocument.DocumentPreferences.PageWidth - myPage.MarginPreferences.MarginRight myArray = Array(myY1, myX1, myY2, myX2) myTextFrame.GeometricBounds = myArray myTextFrame.TextFramePreferences.TextColumnCount = 6 Rem Note that the font name is "ITC Zapf DingbatsMedium" Set myFont = myInDesign.Fonts.Item("ITC Zapf Dingbats") myTextFrame.Texts.Item(1).AppliedFont = myFont myTextFrame.TextContents = myStringList  

Thanks, 

Ole
Technical Details
Message-ID: <ef8ac35.0@WebX.aaQKaf7vad4>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!telocity-west!TELOCITY!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!213.73.101.75.MISMATCH!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <ef8ac35.-1@WebX.aaQKaf7vad4>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,27198d0220b206a6
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-05-22 11:37:54 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!telocity-west!TELOCITY!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!213.73.101.75.MISMATCH!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Zapf Dingbats
Message-ID: <ef8ac35.0@WebX.aaQKaf7vad4>
Date: Wed, 22 May 2002 11:24:28 -0700
References: <ef8ac35.-1@WebX.aaQKaf7vad4>
Lines: 41
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit