Text preferences.
Go to Property Listing | Method Listing
toSource, getElements, toSpecifier, addEventListener, removeEventListener
AddPageOptions, Application, Boolean, Document, EventListeners, Events, Number, Object, String,
|
Property |
Type |
Access |
Description |
|---|---|---|---|
|
abutTextToTextWrap |
read/write |
If true, moves wrapped text to the next available leading increment below the text wrap objects (skip by leading). |
|
|
addPages |
AddPageOptions.END_OF_STORY AddPageOptions.END_OF_SECTION AddPageOptions.END_OF_DOCUMENT |
read/write |
Specifies where to insert new pages in response to overset text. |
|
baselineShiftKeyIncrement |
read/write |
The amount that the baseline shift increases each time the user presses the option/alt-shift-up arrow keys or decreases each time the user presses the option/alt-shift-down arrow keys. (Range: .001 to 100) |
|
|
deleteEmptyPages |
read/write |
Enable auto-deletion of pages containing empty threaded text frames. |
|
|
enableStylePreviewMode |
read/write |
If true, highlights character and paragraph styles with colored backgrounds. |
|
|
eventListeners |
readonly |
A collection of event listeners. |
|
|
events |
readonly |
A collection of events. |
|
|
highlightCustomSpacing |
read/write |
If true, highlights custom kerned or tracked characters. |
|
|
highlightHjViolations |
read/write |
If true, highlights hyphenation and justification rule violations in the text. |
|
|
highlightKeeps |
read/write |
If true, highlights paragraphs that violate keep options. |
|
|
highlightKinsoku |
read/write |
If true, uses on-screen highlighting to identify kinsoku. |
|
|
highlightSubstitutedFonts |
read/write |
If true, highlights missing fonts. |
|
|
highlightSubstitutedGlyphs |
read/write |
If true, highlights substituted glyphs. |
|
|
isValid |
readonly |
Returns true if the object specifier resolves to valid objects. |
|
|
justifyTextWraps |
read/write |
If true, justifies text around text wrap objects. |
|
|
kerningKeyIncrement |
Number (range 1 - 100) |
read/write |
The amount the kerning value per 1000 ems increases each time the user presses of the option/alt-right arrow keys or decreases each time the user presses the option/alt-left arrow keys. (Range: 1 to 100) |
|
leadingKeyIncrement |
read/write |
The amount that leading increases each time the user presses the option/alt-up arrow keys or decreases each time the user presses the option/alt-down arrow keys. (Range: .001 to 100) |
|
|
limitToMasterTextFrames |
read/write |
Restrict the adding of pages during smart text reflow to overridden master text frames. |
|
|
linkTextFilesWhenImporting |
read/write |
If true, links placed text files and spreadsheet files. If false, embeds the files. |
|
|
parent |
readonly |
The parent of the TextPreference (a Application or Document). |
|
|
preserveFacingPageSpreads |
read/write |
Preserve left-hand and right-and pages when facing pages are enabled during smart text reflow. |
|
|
properties |
read/write |
A property that allows setting of several properties at the same time. |
|
|
quoteCharactersRotatedInVertical |
read/write |
If true, Japanese composer treats quotes as half width and rotates them in vertical. |
|
|
showInvisibles |
read/write |
If true, shows hidden characters. |
|
|
smallCap |
Number (range 1 - 200) |
read/write |
The size of text formatted as small caps, specified as a percentage of the font size. (Range: 1 to 200) |
|
smartTextReflow |
read/write |
If true, enable automatic adding and deleting of pages in response to text reflow. |
|
|
subscriptPosition |
Number (range -500 - 500) |
read/write |
The position of subscript characters, specified as a percentage of the regular leading. (Range: -500 to 500) |
|
subscriptSize |
Number (range 1 - 200) |
read/write |
The size of subscript characters, specified as a percentage of the font size. (Range: 0 to 200) |
|
superscriptPosition |
Number (range -500 - 500) |
read/write |
The position of superscript characters, specified as a percentage of the regular leading. (Range: -500 to 500) |
|
superscriptSize |
Number (range 1 - 200) |
read/write |
The size of superscript characters, specified as a percentage of the font size. (Range: 0 to 200) |
|
typographersQuotes |
read/write |
If true, converts straight quotes to typographic quotes. |
|
|
useCidMojikumi |
read/write |
If true, uses the glyph CID to get the mojikumi class of the character. |
|
|
useNewVerticalScaling |
read/write |
If true, reverses X and Y scaling on Roman characters in vertical text. |
|
|
useOpticalSize |
read/write |
If true, automatically selects the correct optical size. |
|
|
useParagraphLeading |
read/write |
If true, applies the leading changes made to a text range to the entire paragraph. If false, applies leading changes only to the text range. |
|
|
zOrderTextWrap |
read/write |
If true, text wrap does not affect text on layers above the layer that contains the text wrap object. If false, text wrap affects text on all visible layers. |
EventListener addEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Adds an event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The event type. |
|
|
handler |
Varies |
The event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
TextPreference getElements ()
Resolves the object specifier, creating an array of object references.
Boolean removeEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Removes the event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The registered event type. |
|
|
handler |
Varies |
The registered event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
String toSource ()
Generates a string which, if executed, will return the TextPreference.
String toSpecifier ()
Retrieves the object specifier.
Application.textPreferences
Document.textPreferences
Event.parent
EventListener.parent
MutationEvent.parent