Font

A font.

Methods:

checkOpenTypeFeature, getElements, toSource, toSpecifier

Objects:

Boolean, FontStatus, FontTypes, Number, Object, String

Property Listing

Property

Type

Access

Description

allowEditableEmbedding

Boolean

readonly

If true, the font can be embedded.

allowOutlines

Boolean

readonly

If true, the font can be converted to outlines.

allowPDFEmbedding

Boolean

readonly

If true, the font can be embedded in a PDF document.

allowPrinting

Boolean

readonly

If true, the can font be printed.

fontFamily

String

readonly

The name of the font family

fontStyleName

String

readonly

The name of the font style.

fontType

FontTypes

FontTypes.ATC

FontTypes.BITMAP

FontTypes.CID

FontTypes.OCF

FontTypes.OPENTYPE_CFF

FontTypes.OPENTYPE_CID

FontTypes.OPENTYPE_TT

FontTypes.TRUETYPE

FontTypes.TYPE_1

readonly

The type of font.

index

Number

readonly

The index of the Font within its containing object.

location

String

readonly

The full path to the Font.

name

String

readonly

The name of the Font.

parent

Application

Document

readonly

The parent of the Font (a Document or Application).

postscriptName

String

readonly

The PostScript name of the font.

properties

Object

read/write

A property that allows setting of several properties at the same time.

restrictedPrinting

Boolean

readonly

If true, the font allows only restricted printing.

status

FontStatus

FontStatus.FAUXED

FontStatus.INSTALLED

FontStatus.NOT_AVAILABLE

FontStatus.SUBSTITUTED

FontStatus.UNKNOWN

readonly

The status of the font.

Method Listing

Boolean checkOpenTypeFeature (using:Varies OpenTypeFeature String)

Checks whether the font supports the specified OpenType feature.

Parameter

Type

Description

using

OpenTypeFeature

OpenTypeFeature.ALL_SMALL_CAPS_FEATURE

OpenTypeFeature.CONTEXTUAL_ALTERNATES_FEATURE

OpenTypeFeature.DEFAULT_FIGURE_STYLE_FEATURE

OpenTypeFeature.DENOMINATOR_FEATURE

OpenTypeFeature.DISCRETIONARY_LIGATURES_FEATURE

OpenTypeFeature.FRACTIONS_FEATURE

OpenTypeFeature.LOW

OpenTypeFeature.NUMERATOR_FEATURE

OpenTypeFeature.ORDINAL_FEATURE

OpenTypeFeature.PROPORTIONAL_LINING_FEATURE

OpenTypeFeature.PROPORTIONAL_OLDSTYLE_FEATURE

OpenTypeFeature.SUBSCRIPT_FEATURE

OpenTypeFeature.SUPERSCRIPT_FEATURE

OpenTypeFeature.SWASH_FEATURE

OpenTypeFeature.TABULAR_LINING_FEATURE

OpenTypeFeature.TABULAR_OLDSTYLE_FEATURE

OpenTypeFeature.TITLING_FEATURE

String

The OpenType feature to check for, specified either as an OpenType feature or a string. Can accept: OpenTypeFeature enumerator or String.

Object getElements ()

Resolves the object specifier, creating an array of object references.

String toSource ()

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

String toSpecifier ()

Retrieves the object specifier.

Object of

Bullet.bulletsFont

TextDefault.numberingFont

Text.numberingFont

Character.numberingFont

Word.numberingFont

Line.numberingFont

TextColumn.numberingFont

Paragraph.numberingFont

TextStyleRange.numberingFont

InsertionPoint.numberingFont

Story.numberingFont

ParagraphStyle.numberingFont

FindPreference.numberingFont

ChangePreference.numberingFont

ChangePreference.appliedFont

Character.appliedFont

CharacterStyle.appliedFont

FindPreference.appliedFont

InsertionPoint.appliedFont

Line.appliedFont

Paragraph.appliedFont

ParagraphStyle.appliedFont

Story.appliedFont

Text.appliedFont

TextColumn.appliedFont

TextDefault.appliedFont

TextStyleRange.appliedFont

Word.appliedFont

Return

Fonts.anyItem()

Fonts.everyItem()

Fonts.nextItem()

Fonts.previousItem()

Fonts.item()

Fonts.itemByName()

Fonts.itemByRange()

Fonts.firstItem()

Fonts.lastItem()

Fonts.middleItem()