Adobe InDesign CS4 (6.0) Object Model JS: Font

InDesign CS4

Class

Font

 A font.

QuickLinks

checkOpenTypeFeature, getElements, toSource, toSpecifier

Hierarchy

Application | Document
Font

Properties

PropertyTypeAccessDescription
allowEditableEmbeddingbool readonlyIf true, the font can be embedded.
allowOutlinesbool readonlyIf true, the font can be converted to outlines.
allowPDFEmbeddingbool readonlyIf true, the font can be embedded in a PDF document.
allowPrintingbool readonlyIf true, the can font be printed.
fontFamilystring readonlyThe name of the font family
fontStyleNamestring readonlyThe name of the font style.
fontStyleNameNativestring readonlyThe native name of the font style.
fontTypeFontTypes:
FontTypes.TYPE_1
FontTypes.TRUETYPE
FontTypes.CID
FontTypes.ATC
FontTypes.BITMAP
FontTypes.OCF
FontTypes.OPENTYPE_CFF
FontTypes.OPENTYPE_CID
FontTypes.OPENTYPE_TT
FontTypes.UNKNOWN
readonlyThe type of font.
fullNamestring readonlyThe full font name.
fullNameNativestring readonlyThe full native name of the font.
indexnumber readonlyThe index of the Font within its containing object.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
locationstring readonlyThe full path to the Font.
namestring readonlyThe name of the Font.
orderingstring readonlyThe ordering of a CID font.
parentApplication
Document
readonlyThe parent of the Font (a Document or Application).
platformNamestring readonlyThe platform font name.
postscriptNamestring readonlyThe PostScript name of the font.
propertiesObject r/wA property that allows setting of several properties at the same time.
registrystring readonlyThe registry of a CID font.
restrictedPrintingbool readonlyIf true, the font allows only restricted printing.
statusFontStatus:
FontStatus.INSTALLED
FontStatus.NOT_AVAILABLE
FontStatus.FAUXED
FontStatus.SUBSTITUTED
FontStatus.UNKNOWN
readonlyThe status of the font.
versionstring readonlyThe font version.
writingScriptnumber readonlyThe writing script.

Methods

Instances

bool checkOpenTypeFeature (using: any)
Checks whether the font supports the specified OpenType feature.

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

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

Element 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

Used in:

array of Font Fonts.itemByRange (from: any, to: any)

Font Fonts.nextItem (obj: Font)

Font Fonts.previousItem (obj: Font)

Return

Array of Font Font.getElements ()

Font Fonts.[] (index: number)

Font Fonts.anyItem ()

Array of Font Fonts.everyItem ()

Font Fonts.firstItem ()

Font Fonts.item (index: any)

Font Fonts.itemByName (name: string)

Array of Font Fonts.itemByRange (from: any, to: any)

Font Fonts.lastItem ()

Font Fonts.middleItem ()

Font Fonts.nextItem (obj: Font)

Font Fonts.previousItem (obj: Font)

Jongware, 20-Jun-2010 v3.0.3dContents :: Index