InDesign Server2025
API 20.5.0.49
Object

Font

A font.

Hierarchy

Application | Document

Font

Properties

NameType AccessDescription
Boolean readonly If true, the font can be embedded.
Boolean readonly If true, the font can be converted to outlines.
Boolean readonly If true, the font can be embedded in a PDF document.
Boolean readonly If true, the can font be printed.
String[] readonly The name of design axes in variable font.
Arrays of 2 Reals[] readonly Range of design axes in variable font. Can return: Array of Arrays of 2 Reals.
Number[] readonly Value of design axes in variable font.
EventListeners<EventListener> readonly A collection of event listeners.
Events<Event> readonly A collection of events.
String readonly The name of the font family
String readonly The name of the font style.
String readonly The native name of the font style.
FontTypes
readonly The type of font.
String readonly The full font name.
String readonly The full native name of the font.
Number readonly The index of the Font within its containing object.
Boolean readonly Returns true if the object specifier resolves to valid objects.
String readonly The full path to the Font.
String readonly The name of the Font.
Number readonly Number of design axes in variable font.
String readonly The ordering of a CID font.
Application | Document readonly The parent of the Font (a Document or Application).
String readonly The platform font name.
String readonly The PostScript name of the font.
Object read/write A property that allows setting of several properties at the same time.
String readonly The registry of a CID font.
Boolean readonly If true, the font allows only restricted printing.
FontStatus
readonly The status of the font.
String readonly The font version.
Number readonly The writing script.

Methods

EventListener

Adds an event listener.

eventType String The event type.
handler File | JavaScriptFunction The event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
Boolean

Checks whether the font supports the specified OpenType feature.

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

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

charactersForSubset String String with all the characters used in the resulting font.
fontDestination File File location for the new font.
Font[]

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

Boolean

Removes the event listener.

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

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

String

Retrieves the object specifier.

Object of 67

Properties elsewhere that hold a Font.

Bullet.bulletsFontChangeGlyphPreference.appliedFontChangeGrepPreference.appliedFontChangeGrepPreference.kentenFontChangeGrepPreference.rubyFontChangeTextPreference.appliedFontChangeTextPreference.kentenFontChangeTextPreference.rubyFontChangeTransliteratePreference.appliedFontChangeTransliteratePreference.kentenFontChangeTransliteratePreference.rubyFontCharacter.appliedFontCharacter.kentenFontCharacter.rubyFontCharacterStyle.appliedFontCharacterStyle.kentenFontCharacterStyle.rubyFontCompositeFontEntry.appliedFontEvent.parentEventListener.parentFindGlyphPreference.appliedFontFindGrepPreference.appliedFontFindGrepPreference.kentenFontFindGrepPreference.rubyFontFindTextPreference.appliedFontFindTextPreference.kentenFontFindTextPreference.rubyFontFindTransliteratePreference.appliedFontFindTransliteratePreference.kentenFontFindTransliteratePreference.rubyFontGridDataInformation.appliedFontInsertionPoint.appliedFontInsertionPoint.kentenFontInsertionPoint.rubyFontLayoutGridDataInformation.appliedFontLine.appliedFontLine.kentenFontLine.rubyFontMutationEvent.parentParagraph.appliedFontParagraph.kentenFontParagraph.rubyFontParagraphStyle.appliedFontParagraphStyle.kentenFontParagraphStyle.rubyFontStory.appliedFontStory.kentenFontStory.rubyFontStoryGridDataInformation.appliedFontText.appliedFontText.kentenFontText.rubyFontTextColumn.appliedFontTextColumn.kentenFontTextColumn.rubyFontTextDefault.appliedFontTextDefault.kentenFontTextDefault.rubyFontTextStyleRange.appliedFontTextStyleRange.kentenFontTextStyleRange.rubyFontWord.appliedFontWord.kentenFontWord.rubyFontXmlStory.appliedFontXmlStory.kentenFontXmlStory.rubyFont

Parameter of 3

Method parameters that accept a Font.

Return 12

Methods that return a Font.