Adobe 26001360 Scripting Guide - Page 455
TextFont, Table 5.162, TextFont - Properties
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 455 highlights
Adobe Illustrator CS Scripting Guide 455 TextFont Information about a font in the document. Table 5.162 TextFont - Properties Property R/O Value type Application R/O Application Name Parent Style R/O String R/O Object R/O String What it is Application that the collection belongs to The font's text face name The object's container The font's style name Example 85.1 ' TextFont ' TextFonts ' ' Create a new document and display a list of ' all available fonts. ' Dim appRef As New Illustrator.Application Dim docRef As Illustrator.Document Set docRef = appRef.Documents.Add() Dim x As Integer Dim y As Integer x = 30 y = docRef.Height - 30 Dim fontRef Dim textRef As Illustrator.TextFrame For Each fontRef In appRef.Fonts Set textRef = docRef.TextFrames.Add() textRef.TextRange.CharacterAttributes.Size = 8 textRef.Contents = fontRef.Name + " " + fontRef.Style textRef.Top = y textRef.Left = x appRef.Redraw y = y - textRef.Height If (y < 30) Then 'reset y,x at bottom of page y = docRef.Height - 30 x = x + 150 End If Next fontRef 12 Aug 03