Adobe InDesign CS6 Server (8.0) Object Model JS: CompositeFonts

InDesign Server CS6

Class

CompositeFonts

 A collection of composite fonts.

See also CompositeFont.

QuickLinks

[], add, anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

CompositeFont [] (index: number)
Returns the CompositeFont with the specified index.

ParameterTypeDescription
indexnumberThe index.

CompositeFont add ([withProperties: Object])
Creates a new CompositeFont.

ParameterTypeDescription
withPropertiesObjectInitial values for properties of the new CompositeFont (Optional)

CompositeFont anyItem ()
Returns any CompositeFont in the collection.

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

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

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

CompositeFont item (index: varies)
Returns the CompositeFont with the specified index or name.

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

CompositeFont itemByID (id: number)
Returns the CompositeFont with the specified ID.

ParameterTypeDescription
idnumberThe ID.

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

ParameterTypeDescription
namestringThe name.

Array of CompositeFont itemByRange (from: varies, to: varies)
Returns the CompositeFonts within the specified range.

ParameterTypeDescription
fromCompositeFont
Long Integer
String
The CompositeFont, index, or name at the beginning of the range. Can accept: CompositeFont, Long Integer or String.
toCompositeFont
Long Integer
String
The CompositeFont, index, or name at the end of the range. Can accept: CompositeFont, Long Integer or String.

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

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

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

ParameterTypeDescription
objCompositeFontThe CompositeFont whose index comes before the desired CompositeFont.

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

ParameterTypeDescription
objCompositeFontThe index of the CompositeFont that follows the desired CompositeFont.

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

Element of

Application.compositeFonts

Document.compositeFonts

Jongware, 28-Apr-2012 v3.0.3iContents :: Index