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.

fontStyleNameNative

String

readonly

The native 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

FontTypes.UNKNOWN

readonly

The type of font.

fullName

String

readonly

The full font name.

fullNameNative

String

readonly

The full native name of the font.

index

Number

readonly

The index of the Font within its containing object.

isValid

Boolean

readonly

Returns true if the object specifier resolves to valid objects.

location

String

readonly

The full path to the Font.

name

String

readonly

The name of the Font.

ordering

String

readonly

The ordering of a CID font.

parent

Application

Document

readonly

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

platformName

String

readonly

The platform font name.

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.

registry

String

readonly

The registry of a CID font.

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.

version

String

readonly

The font version.

writingScript

Number

readonly

The writing script.

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.

Font 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

ChangeGlyphPreference.appliedFont

ChangeGrepPreference.appliedFont

ChangeTextPreference.appliedFont

Character.appliedFont

CharacterStyle.appliedFont

FindGlyphPreference.appliedFont

FindGrepPreference.appliedFont

FindTextPreference.appliedFont

InsertionPoint.appliedFont

Line.appliedFont

Paragraph.appliedFont

ParagraphStyle.appliedFont

Story.appliedFont

Text.appliedFont

TextColumn.appliedFont

TextDefault.appliedFont

TextStyleRange.appliedFont

Word.appliedFont

XmlStory.appliedFont

Return

Font.getElements()

Fonts.anyItem()

Fonts.everyItem()

Fonts.nextItem()

Fonts.previousItem()

Fonts.item()

Fonts.[]()

Fonts.itemByName()

Fonts.itemByRange()

Fonts.firstItem()

Fonts.lastItem()

Fonts.middleItem()