Adobe InDesign CS3 (5.0) Object Model JS: Fonts

InDesign CS3

Class

Fonts

 A collection of fonts.

QuickLinks

anyItem, count, everyItem, firstItem, item, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

Font anyItem ()
Returns any Font in the collection.

number count ()
Displays the number of elements in the Font.

Array of Font everyItem ()
Returns every Font in the collection.

Font firstItem ()
Returns the first Font in the collection.

Font item (index: any)
Returns the Font with the specified index or name.

ParameterTypeDescription
indexLong Integer
String
The index or name. Can accept: Long Integer or String.

Font itemByName (name: string)
Returns the Font with the specified name.

ParameterTypeDescription
namestringThe name.

Array of Font itemByRange (from: any, to: any)
Returns the Fonts within the specified range.

ParameterTypeDescription
fromFont
Long Integer
String
The Font, index, or name at the beginning of the range. Can accept: Font, Long Integer or String.
toFont
Long Integer
String
The Font, index, or name at the end of the range. Can accept: Font, Long Integer or String.

Font lastItem ()
Returns the last Font in the collection.

Font middleItem ()
Returns the middle Font in the collection.

Font nextItem (obj: Font)
Returns the Font whose index follows the specified Font in the collection.

ParameterTypeDescription
objFontThe Font whose index comes before the desired Font.

Font previousItem (obj: Font)
Returns the Font with the index previous to the specified index.

ParameterTypeDescription
objFontThe index of the Font that follows the desired Font.

string toSource ()
Generates a string which, if executed, will return the Font.

Element of

Application.fonts

Document.fonts

Jongware, 27-Jun-2010 v3.0.3dContents :: Index