InDesign2026
API 21.5.1.73
Collection of Font

Fonts

A collection of fonts.

Properties

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

Methods

→ Font

Returns the Font with the specified index.

index Number The index.
→ Font

Returns any Font in the collection.

→ Number

Displays the number of elements in the Font.

→ Font[]

Returns every Font in the collection.

→ Font

Returns the first Font in the collection.

→ Font

Returns the Font with the specified index or name.

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

Returns the Font with the specified name.

name String The name.
→ Font[]

Returns the Fonts within the specified range.

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

Returns the last Font in the collection.

→ Font

Returns the middle Font in the collection.

→ Font

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

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

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

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

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

Object of 2

Properties elsewhere that hold a Fonts.