Adobe Illustrator CS Scripting Guide
PrintFontOptions
This object class contains information about font downloading and substitution for the fonts
used for printing the document.
Table 5.123 PrintFontOptions — Properties
Property
Application
DownloadFonts
FontSubstitution
Example 65.1
' PrintFontOptions
'
' Create a new print font options object, change some
' attributes and print with it.
'
Dim appRef As New Illustrator.Application
Dim docRef As Illustrator.Document
Dim textRef As Illustrator.TextFrame
Set docRef = appRef.Documents.Add()
Set textRef = docRef.TextFrames.Add()
textRef.Top = 600
textRef.Left = 50
textRef.Contents = "PrintFontOptions object"
' Create a PrintFontOptions object and
' assign it to a PrintOptions object.
Dim fontOpts As New Illustrator.PrintFontOptions
Dim printOpts As New Illustrator.printOptions
printOpts.FontOptions = fontOpts
fontOpts.DownloadFonts = aiDownloadComplete
fontOpts.FontSubstitution = aiSubstituteOblique
' print it
docRef.PrintOut printOpts
R/O
Value type
R/O
Application object
AiPrintFontDown-
loadMode
enumeration
AiFontSubstitution
Policy enumeration
12 Aug 03
What it is
Application to which the collection
belongs
The font download mode;
default: DownloadSubset
The font substitution policy;
default: SubstituteOblique
421