Adobe InDesign CS (3.0) Object Model JS: Font

InDesign CS

Class

Font

 A font.

QuickLinks

checkOpenTypeFeature

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

ParameterTypeDescription
usingOpenTypeFeature:
OpenTypeFeature.LOW
OpenTypeFeature.DISCRETIONARY_LIGATURES_FEATURE
OpenTypeFeature.FRACTIONS_FEATURE
OpenTypeFeature.ORDINAL_FEATURE
OpenTypeFeature.SWASH_FEATURE
OpenTypeFeature.TITLING_FEATURE
OpenTypeFeature.CONTEXTUAL_ALTERNATES_FEATURE
OpenTypeFeature.ALL_SMALL_CAPS_FEATURE
OpenTypeFeature.SUPERSCRIPT_FEATURE
OpenTypeFeature.SUBSCRIPT_FEATURE
OpenTypeFeature.NUMERATOR_FEATURE
OpenTypeFeature.DENOMINATOR_FEATURE
OpenTypeFeature.TABULAR_LINING_FEATURE
OpenTypeFeature.PROPORTIONAL_OLDSTYLE_FEATURE
OpenTypeFeature.PROPORTIONAL_LINING_FEATURE
OpenTypeFeature.TABULAR_OLDSTYLE_FEATURE
OpenTypeFeature.DEFAULT_FIGURE_STYLE_FEATURE
OpenTypeFeature.OVERLAP_SWASH
OpenTypeFeature.STYLISTIC_ALTERNATE
OpenTypeFeature.JUSTIFICATION_ALTERNATE
OpenTypeFeature.STRETCHED_ALTERNATE
Which OpenType feature to use

Element of

ChangePreference.appliedFont

ChangePreference.bulletsAndNumberingFont

Character.appliedFont

Character.bulletsAndNumberingFont

CharacterStyle.appliedFont

FindPreference.appliedFont

FindPreference.bulletsAndNumberingFont

InsertionPoint.appliedFont

InsertionPoint.bulletsAndNumberingFont

Line.appliedFont

Line.bulletsAndNumberingFont

Paragraph.appliedFont

Paragraph.bulletsAndNumberingFont

ParagraphStyle.appliedFont

ParagraphStyle.bulletsAndNumberingFont

Story.appliedFont

Story.bulletsAndNumberingFont

Text.appliedFont

Text.bulletsAndNumberingFont

TextColumn.appliedFont

TextColumn.bulletsAndNumberingFont

TextDefault.appliedFont

TextDefault.bulletsAndNumberingFont

TextStyleRange.appliedFont

TextStyleRange.bulletsAndNumberingFont

Word.appliedFont

Word.bulletsAndNumberingFont

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])

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])

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