Font

A font.

Methods:

checkOpenTypeFeature

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:OpenTypeFeature)

Check whether a font object supports a specific OpenType feature. Pass in either one of the enumeration values or a string with the 4 character code of the 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

Which OpenType feature to use

Object of

TextDefault.bulletsAndNumberingFont

Text.bulletsAndNumberingFont

Character.bulletsAndNumberingFont

Word.bulletsAndNumberingFont

Line.bulletsAndNumberingFont

TextColumn.bulletsAndNumberingFont

Paragraph.bulletsAndNumberingFont

TextStyleRange.bulletsAndNumberingFont

InsertionPoint.bulletsAndNumberingFont

Story.bulletsAndNumberingFont

ParagraphStyle.bulletsAndNumberingFont

FindPreference.bulletsAndNumberingFont

ChangePreference.bulletsAndNumberingFont

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