Fonts

A collection of fonts.

Methods:

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

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

Font [] (index:Number)

Returns the Font with the specified index.

Parameter

Type

Description

index

Number

The index.

Font anyItem ()

Returns any Font in the collection.

Number count ()

Displays the number of elements in the Font.

Font everyItem ()

Returns every Font in the collection.

Font firstItem ()

Returns the first Font in the collection.

Font item (index:Varies LongInteger String)

Returns the Font with the specified index or name.

Parameter

Type

Description

index

LongInteger

String

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

Font itemByName (name:String)

Returns the Font with the specified name.

Parameter

Type

Description

name

String

The name.

Font itemByRange (from:Varies Font LongInteger String, to:Varies Font LongInteger String)

Returns the Fonts within the specified range.

Parameter

Type

Description

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 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.

Parameter

Type

Description

obj

Font

The Font whose index comes before the desired Font.

Font previousItem (obj:Font)

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

Parameter

Type

Description

obj

Font

The index of the Font that follows the desired Font.

String toSource ()

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

Object of

Application.fonts

Document.fonts