Font

A font.

Methods:

addEventListener, checkOpenTypeFeature, createSubsetFont, getElements, removeEventListener, toSource, toSpecifier

Objects:

Boolean, EventListeners, Events, 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.

eventListeners

EventListeners EventListener

readonly

A collection of event listeners.

events

Events Event

readonly

A collection of events.

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

EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])

Adds an event listener.

Parameter

Type

Description

eventType

String

The event type.

handler

File

JavaScriptFunction

The event handler. Can accept: File or JavaScript Function.

captures

Boolean

This parameter is obsolete. (Optional)

(default: false)

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

OpenTypeFeature.LOW

OpenTypeFeature.NUMERATOR_FEATURE

OpenTypeFeature.ORDINAL_FEATURE

OpenTypeFeature.OVERLAP_SWASH

OpenTypeFeature.PROPORTIONAL_LINING_FEATURE

OpenTypeFeature.PROPORTIONAL_OLDSTYLE_FEATURE

OpenTypeFeature.STRETCHED_ALTERNATE

OpenTypeFeature.STYLISTIC_ALTERNATE

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.

undefined createSubsetFont (charactersForSubset:String, fontDestination:File)

Create a copy of the font with just enough information to render the list of characters given.

Parameter

Type

Description

charactersForSubset

String

String with all the characters used in the resulting font.

fontDestination

File

File location for the new font.

Font getElements ()

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

Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])

Removes the event listener.

Parameter

Type

Description

eventType

String

The registered event type.

handler

File

JavaScriptFunction

The registered event handler. Can accept: File or JavaScript Function.

captures

Boolean

This parameter is obsolete. (Optional)

(default: false)

String toSource ()

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

String toSpecifier ()

Retrieves the object specifier.

Object of

Bullet.bulletsFont

TextDefault.rubyFont

Text.rubyFont

Character.rubyFont

Word.rubyFont

Line.rubyFont

TextColumn.rubyFont

Paragraph.rubyFont

TextStyleRange.rubyFont

InsertionPoint.rubyFont

Story.rubyFont

ParagraphStyle.rubyFont

XmlStory.rubyFont

FindTextPreference.rubyFont

FindGrepPreference.rubyFont

FindTransliteratePreference.rubyFont

ChangeTextPreference.rubyFont

ChangeGrepPreference.rubyFont

ChangeTransliteratePreference.rubyFont

CharacterStyle.rubyFont

ChangeGlyphPreference.appliedFont

ChangeGrepPreference.appliedFont

ChangeTextPreference.appliedFont

ChangeTransliteratePreference.appliedFont

Character.appliedFont

CharacterStyle.appliedFont

CompositeFontEntry.appliedFont

FindGlyphPreference.appliedFont

FindGrepPreference.appliedFont

FindTextPreference.appliedFont

FindTransliteratePreference.appliedFont

GridDataInformation.appliedFont

InsertionPoint.appliedFont

LayoutGridDataInformation.appliedFont

Line.appliedFont

Paragraph.appliedFont

ParagraphStyle.appliedFont

Story.appliedFont

StoryGridDataInformation.appliedFont

Text.appliedFont

TextColumn.appliedFont

TextDefault.appliedFont

TextStyleRange.appliedFont

Word.appliedFont

XmlStory.appliedFont

TextDefault.kentenFont

Text.kentenFont

Character.kentenFont

Word.kentenFont

Line.kentenFont

TextColumn.kentenFont

Paragraph.kentenFont

TextStyleRange.kentenFont

InsertionPoint.kentenFont

Story.kentenFont

ParagraphStyle.kentenFont

XmlStory.kentenFont

FindTextPreference.kentenFont

FindGrepPreference.kentenFont

FindTransliteratePreference.kentenFont

ChangeTextPreference.kentenFont

ChangeGrepPreference.kentenFont

ChangeTransliteratePreference.kentenFont

CharacterStyle.kentenFont

Event.parent

EventListener.parent

MutationEvent.parent

Return

Document.createMissingFontObject()

Font.getElements()

Fonts.anyItem()

Fonts.everyItem()

Fonts.nextItem()

Fonts.previousItem()

Fonts.item()

Fonts.[]()

Fonts.itemByName()

Fonts.itemByRange()

Fonts.firstItem()

Fonts.lastItem()

Fonts.middleItem()