InDesign2026
API 21.5.1.73
Collection of CompositeFont

CompositeFonts

A collection of composite fonts.

Properties

NameType AccessDescription
Number readonly The number of objects in the collection.

Methods

→ CompositeFont

Returns the CompositeFont with the specified index.

index Number The index.
→ CompositeFont

Creates a new CompositeFont.

withProperties? Object Initial values for properties of the new CompositeFont
→ CompositeFont

Returns any CompositeFont in the collection.

→ Number

Displays the number of elements in the CompositeFont.

→ CompositeFont[]

Returns every CompositeFont in the collection.

→ CompositeFont

Returns the first CompositeFont in the collection.

→ CompositeFont

Returns the CompositeFont with the specified index or name.

index LongInteger | String The index or name. Can accept: Long Integer or String.
→ CompositeFont

Returns the CompositeFont with the specified ID.

id Number The ID.
→ CompositeFont

Returns the CompositeFont with the specified name.

name String The name.
→ CompositeFont[]

Returns the CompositeFonts within the specified range.

from CompositeFont | LongInteger | String The CompositeFont, index, or name at the beginning of the range. Can accept: CompositeFont, Long Integer or String.
to CompositeFont | LongInteger | String The CompositeFont, index, or name at the end of the range. Can accept: CompositeFont, Long Integer or String.
→ CompositeFont

Returns the last CompositeFont in the collection.

→ CompositeFont

Returns the middle CompositeFont in the collection.

→ CompositeFont

Returns the CompositeFont whose index follows the specified CompositeFont in the collection.

obj CompositeFont The CompositeFont whose index comes before the desired CompositeFont.
→ CompositeFont

Returns the CompositeFont with the index previous to the specified index.

obj CompositeFont The index of the CompositeFont that follows the desired CompositeFont.
→ String

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

Object of 2

Properties elsewhere that hold a CompositeFonts.