Adobe InDesign CS2 (4.0) Object Model JS: Font

InDesign CS2

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.
fontTypeFontTypes:
FontTypes.TYPE_1
FontTypes.TRUETYPE
FontTypes.CID
FontTypes.ATC
FontTypes.BITMAP
FontTypes.OCF
FontTypes.OPENTYPE_CFF
FontTypes.OPENTYPE_CID
FontTypes.OPENTYPE_TT
readonlyThe type of font.
indexnumber readonlyThe index of the Font within its containing object.
locationstring readonlyThe full path to the Font.
namestring readonlyThe name of the Font.
parentApplication
Document
readonlyThe parent of the Font (a Document or Application).
postscriptNamestring readonlyThe PostScript name of the font.
propertiesObject r/wA property that allows setting of several properties at the same time.
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.

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

Element of

Bullet.bulletsFont

ChangePreference.appliedFont

ChangePreference.numberingFont

Character.appliedFont

Character.numberingFont

CharacterStyle.appliedFont

FindPreference.appliedFont

FindPreference.numberingFont

InsertionPoint.appliedFont

InsertionPoint.numberingFont

Line.appliedFont

Line.numberingFont

Paragraph.appliedFont

Paragraph.numberingFont

ParagraphStyle.appliedFont

ParagraphStyle.numberingFont

Story.appliedFont

Story.numberingFont

Text.appliedFont

Text.numberingFont

TextColumn.appliedFont

TextColumn.numberingFont

TextDefault.appliedFont

TextDefault.numberingFont

TextStyleRange.appliedFont

TextStyleRange.numberingFont

Word.appliedFont

Word.numberingFont

Used in:

void Character.applyBullets ([bulletChar: number][, bulletType: BulletCharacterType][, bulletFont: any][, bulletFontStyle: string][, bulletSize: number][, bulletColor: Swatch][, bulletAlignment: ListAlignment=ListAlignment.HANGING_LIST][, listLeftIndent: number][, listFirstLineIndent: number][, listFirstTabPosition: number])

void Character.applyNumbers ([numberingStyle: NumberingStyle][, numberingSeparator: number][, startingValue: number][, numberFont: any][, numberFontStyle: string][, numberSize: number][, numberColor: Swatch][, numberAlignment: ListAlignment=ListAlignment.HANGING_LIST][, listLeftIndent: number][, listFirstLineIndent: number][, listFirstTabPosition: number])

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

Font Fonts.nextItem (obj: Font)

Font Fonts.previousItem (obj: Font)

void InsertionPoint.applyBullets ([bulletChar: number][, bulletType: BulletCharacterType][, bulletFont: any][, bulletFontStyle: string][, bulletSize: number][, bulletColor: Swatch][, bulletAlignment: ListAlignment=ListAlignment.HANGING_LIST][, listLeftIndent: number][, listFirstLineIndent: number][, listFirstTabPosition: number])

void InsertionPoint.applyNumbers ([numberingStyle: NumberingStyle][, numberingSeparator: number][, startingValue: number][, numberFont: any][, numberFontStyle: string][, numberSize: number][, numberColor: Swatch][, numberAlignment: ListAlignment=ListAlignment.HANGING_LIST][, listLeftIndent: number][, listFirstLineIndent: number][, listFirstTabPosition: number])

void Line.applyBullets ([bulletChar: number][, bulletType: BulletCharacterType][, bulletFont: any][, bulletFontStyle: string][, bulletSize: number][, bulletColor: Swatch][, bulletAlignment: ListAlignment=ListAlignment.HANGING_LIST][, listLeftIndent: number][, listFirstLineIndent: number][, listFirstTabPosition: number])

void Line.applyNumbers ([numberingStyle: NumberingStyle][, numberingSeparator: number][, startingValue: number][, numberFont: any][, numberFontStyle: string][, numberSize: number][, numberColor: Swatch][, numberAlignment: ListAlignment=ListAlignment.HANGING_LIST][, listLeftIndent: number][, listFirstLineIndent: number][, listFirstTabPosition: number])

void Paragraph.applyBullets ([bulletChar: number][, bulletType: BulletCharacterType][, bulletFont: any][, bulletFontStyle: string][, bulletSize: number][, bulletColor: Swatch][, bulletAlignment: ListAlignment=ListAlignment.HANGING_LIST][, listLeftIndent: number][, listFirstLineIndent: number][, listFirstTabPosition: number])

void Paragraph.applyNumbers ([numberingStyle: NumberingStyle][, numberingSeparator: number][, startingValue: number][, numberFont: any][, numberFontStyle: string][, numberSize: number][, numberColor: Swatch][, numberAlignment: ListAlignment=ListAlignment.HANGING_LIST][, listLeftIndent: number][, listFirstLineIndent: number][, listFirstTabPosition: number])

void Story.applyBullets ([bulletChar: number][, bulletType: BulletCharacterType][, bulletFont: any][, bulletFontStyle: string][, bulletSize: number][, bulletColor: Swatch][, bulletAlignment: ListAlignment=ListAlignment.HANGING_LIST][, listLeftIndent: number][, listFirstLineIndent: number][, listFirstTabPosition: number])

void Story.applyNumbers ([numberingStyle: NumberingStyle][, numberingSeparator: number][, startingValue: number][, numberFont: any][, numberFontStyle: string][, numberSize: number][, numberColor: Swatch][, numberAlignment: ListAlignment=ListAlignment.HANGING_LIST][, listLeftIndent: number][, listFirstLineIndent: number][, listFirstTabPosition: number])

void Text.applyBullets ([bulletChar: number][, bulletType: BulletCharacterType][, bulletFont: any][, bulletFontStyle: string][, bulletSize: number][, bulletColor: Swatch][, bulletAlignment: ListAlignment=ListAlignment.HANGING_LIST][, listLeftIndent: number][, listFirstLineIndent: number][, listFirstTabPosition: number])

void Text.applyNumbers ([numberingStyle: NumberingStyle][, numberingSeparator: number][, startingValue: number][, numberFont: any][, numberFontStyle: string][, numberSize: number][, numberColor: Swatch][, numberAlignment: ListAlignment=ListAlignment.HANGING_LIST][, listLeftIndent: number][, listFirstLineIndent: number][, listFirstTabPosition: number])

void TextColumn.applyBullets ([bulletChar: number][, bulletType: BulletCharacterType][, bulletFont: any][, bulletFontStyle: string][, bulletSize: number][, bulletColor: Swatch][, bulletAlignment: ListAlignment=ListAlignment.HANGING_LIST][, listLeftIndent: number][, listFirstLineIndent: number][, listFirstTabPosition: number])

void TextColumn.applyNumbers ([numberingStyle: NumberingStyle][, numberingSeparator: number][, startingValue: number][, numberFont: any][, numberFontStyle: string][, numberSize: number][, numberColor: Swatch][, numberAlignment: ListAlignment=ListAlignment.HANGING_LIST][, listLeftIndent: number][, listFirstLineIndent: number][, listFirstTabPosition: number])

void TextStyleRange.applyBullets ([bulletChar: number][, bulletType: BulletCharacterType][, bulletFont: any][, bulletFontStyle: string][, bulletSize: number][, bulletColor: Swatch][, bulletAlignment: ListAlignment=ListAlignment.HANGING_LIST][, listLeftIndent: number][, listFirstLineIndent: number][, listFirstTabPosition: number])

void TextStyleRange.applyNumbers ([numberingStyle: NumberingStyle][, numberingSeparator: number][, startingValue: number][, numberFont: any][, numberFontStyle: string][, numberSize: number][, numberColor: Swatch][, numberAlignment: ListAlignment=ListAlignment.HANGING_LIST][, listLeftIndent: number][, listFirstLineIndent: number][, listFirstTabPosition: number])

void Word.applyBullets ([bulletChar: number][, bulletType: BulletCharacterType][, bulletFont: any][, bulletFontStyle: string][, bulletSize: number][, bulletColor: Swatch][, bulletAlignment: ListAlignment=ListAlignment.HANGING_LIST][, listLeftIndent: number][, listFirstLineIndent: number][, listFirstTabPosition: number])

void Word.applyNumbers ([numberingStyle: NumberingStyle][, numberingSeparator: number][, startingValue: number][, numberFont: any][, numberFontStyle: string][, numberSize: number][, numberColor: Swatch][, numberAlignment: ListAlignment=ListAlignment.HANGING_LIST][, listLeftIndent: number][, listFirstLineIndent: number][, listFirstTabPosition: number])

Return

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, 27-Jun-2010 v3.0.3dContents :: Index