Adobe 65009333 Scripting Guide - Page 41
Fonts, complete script, see FontCollections
UPC - 883919155852
View all Adobe 65009333 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 41 highlights
Text and Type Formatting text 41 if(underline == true){ underlineColor = app.colors.item("Black"); underlineGapColor = app.swatches.item("None"); underlineGapOverprint = false; underlineGapTint = 100; underlineOffset = 3; underlineOverprint = false; underlineTint = 100; underlineType = app.strokeStyles.item("Solid"); underlineWeight = .25 } verticalScale = 100; } Fonts The fonts collection of an InCopy application object contains all fonts accessible to InCopy. By contrast, the fonts collection of a document contains only those fonts used in the document. The fonts collection of a document also contains any missing fonts-fonts used in the document that are not accessible to InCopy. The following script shows the difference between application fonts and document fonts (for the complete script, see FontCollections): //Shows the difference between the fonts collection of the application //and the fonts collection of a document. var myApplicationFonts = app.fonts; var myDocument = app.documents.add(); var myStory = myDocument.stories.item(0); var myDocumentFonts = myDocument.fonts; var myFontNames = myApplicationFonts.everyItem().name; var myDocumentFontNames = myDocument.fonts.everyItem().name; var myString = "Document Fonts:\r"; for(var myCounter = 0;myCounter