DocumentationDocumentation
Darty.ai
Get Started
Basics
Methods
Colors
UI
Workflows
Darty.ai
Get Started
Basics
Methods
Colors
UI
Workflows
  • Get Started

    • Installation and Login
    • Your First Darty Document
    • Installers - Instructions and Downloads
    • Licensing
  • Basics

    • Darty Basics
    • Darty Header
    • Darty Tags
  • Methods

    • Darty-Ai Methods
    • Align
    • Appearance - General
    • Appearance - Colors & Swatches
    • Appearance - Effect Properties
    • Artboard Methods
    • Arrange
    • Attributes
    • Barcode
    • Barcode Formats
    • Clean Document
    • Clipping Mask Make and Release
    • Color Mode
    • Comment
    • Compound Path - Make and Release
    • Distribute
    • Duplicate
    • Expand
    • Fit To Bounds
    • Graphic Style
    • Group & Ungroup
    • Layer Methods
    • Outline
    • Pathfinder
    • Place
    • Rasterize
    • Reduce To Basic Appearance
    • Remove
    • Swatch Methods
    • Tags Methods
    • Tables
    • Template
    • Text
    • Transform Methods
    • zOrder
    • Skip and *
  • Colors

    • Color Libraries
  • Sheet Builder
    • Builder Table Anatomy
    • Builder Data Sources and Files
    • Builder Method Blocks
    • Builder Rows, Cells, and Navigation
  • User Interface

    • Darty-Ai User Interface
    • Tools Tab
    • Compress Images
    • Tools Methods
      • Tools Method Actions and Apply Modes
      • Tools Method Table Preview
      • Align Tool
      • Appearance Tool
      • Graphic Style Tool
      • Artboard Tool
      • Attributes Tool
      • Arrange Tool
      • Barcode Tool
      • Color Mode Tool
      • Clean Tool
      • Clipping Tool
      • Comment Tool
      • Compound Path Tool
      • Distribute Tool
      • Duplicate Tool
      • Expand Tool
      • Fit to Bounds Tool
      • Group Tool
      • Ungroup Tool
      • Layer Tool
      • Outline Tool
      • Pathfinder Tool
      • Place Tool
      • Rasterize Tool
      • Reduce Tool
      • Remove Tool
      • Swatches Tool
      • Tags Tool
      • Table Tool
      • Skip Row Tool
      • Template in Sheet Builder
      • Text Tool
      • Transform Tool
      • Z-Order Tool
    • Tags Panel
    • Tables Panel
    • Annotations and Canvas Controls
    • Tags Tab
    • Data Tab
    • Export Tab
    • Settings Tab
    • Help Tab
    • Export Settings
    • Export Validation
    • Job Export Settings
    • Export Counter Variables
    • Export Progress
    • Export Presets
    • Recent Files
    • Color Dialog
  • Cloud Data

    • Darty-Ai Cloud Data Integrations
    • Darty-Ai with Google Sheets
  • Workflows

    • Darty-Ai Workflows
    • Darty Preview
    • Darty Export Workflows
    • Darty Data Workflows
    • Utilities
      • Compression
      • XMP Usage
  • Site Blog

    • ⭐️What’s new in Darty-Ai 2.5 ⭐️
    • ⭐️Getting Started ⭐️
    • ⭐️Placing Images in Darty-Ai ⭐️
    • 🚀 New Features — Darty-Ai 1.7.8 (March 2026)
    • Creating a Basic Pie-Chart with Line-Art & Data
    • Customer Data and Darty-Ai
    • Darty-Ai Now Supports Google Sheets
    • External SVGs with Darty-Ai
    • Preview Your Documents
    • Self-Adjusting Logo Automation
    • State Management for Artwork Appearance
    • Text Replacements and Formatting
    • Using Private Google Sheets Shared with Business Emails
  • Site Pages

    • 🏠 Home
    • 💰 Pricing
    • Downloads
    • Legal
  • Release Notes
  • Downloads

Text

The text method is for changing the content and / or format of text and fitting texts to text frames or text frames to text.
Unlike Illustrator's native text variable where you can only change the entire contents of a text frame, with Darty-Ai you can change both the contents and format of either entire or parts of text frames.

See the Text Tool for the visual Find and Replace and Formatting editors.

Method editor

Text controls

Text editor in Find and Replace mode

Text Formatting editor, upper section

More editor views
Text Formatting editor, lower section

Targeting Text

To change the text of an entire text frame use the top row of the table or the tagSearch property and specify the tag of the text frame to be changed.
To change the text of specific words use the find property and specify the words to be changed.
By default only words surrounded by double {{curly}} or ((round)) parenthesis will be targeted.
Use the mode property to change this behavior.
To target specific words in a specified text frames, set both the tagSearch (or top row of the table) and the find properties.
tagSearch: animals find: cat will target the instances of cat but only the ones found in text frames tagged animals.
If you want to target a single instance of a {{template}}, give it a unique name.

In the below sample text, if you use find: consectetuer adipiscing elit the fist two instances of the find text will be targeted, the third will not, because it is not surrounded by double parenthesis. When the text is changed the parenthesis will be removed.
If you want to target all instances of a set of words including ones not surrounded by parenthesis, use mode: all, that will target all instances, parenthesis will be not be removed.

Lorem ipsum dolor sit amet, {{consectetuer adipiscing elit}}, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
Lorem ipsum dolor sit amet, ((consectetuer adipiscing elit)), sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat, consectetuer adipiscing elit.

Modes

In most cases you do not need to set mode, by default if the find property is used, words surrounded by double {{curly}} and ((round)) parenthesis will be targeted.
If a tagSearch is set and the find property is not set and the entire contents of the tagged frame will be targeted.

ModeDescription
allAll instances of the find string will be targeted, parenthesis will not be removed
{Instances of the find string which are surrounded by double {{curly}} parenthesis will be targeted, parenthesis will be removed
(Instances of the find string which are surrounded by double ((round)) parenthesis will be targeted, parenthesis will be removed
{( [DEFAULT]Instances of the find string which are surrounded by double {{curly}} or ((round)) parenthesis will be targeted, parenthesis will be removed
@Will target the entire text of a text frame, this rarely needs setting as it will be the default behavior for when a tagSearch but not a find is set.

Advanced RegEx Targeting with grep

Use the grep text parameter to leverage modern ECMAScript-style regex, including the new v (Unicode sets) flag, for ultra-specific targeting of characters — even diacritics and emojis.

RegexMatches
[\u0600-\u06FF]All Arabic characters including diacritics
/\p{Script=Arabic}|\p{M}/All Arabic characters, including diacritics
/[[\u0600-\u06FF]--\p{M}]/vArabic excluding diacritics
/[[\u0600-\u06FF]&&\p{M}]/vOnly Arabic diacritics
/\p{Emoji}/All emoji characters
/[\p{Emoji}--\p{ASCII}]/vEmojis without ASCII overlap

These regexes allow you to:

  • 🎨 Color or format only diacritics, emojis, or specific script characters.
  • 🧹 Remove unwanted characters like diacritics or control marks.
  • ✍️ Apply fonts or text direction based on Unicode ranges.

GREP Flags

The grep parameter can be used along with the flags parameter to set regex flags.
Valid Options for the flags property are:

FlagDescription
nno flags
iicase (case insensitive)
mmultiline (multiline matching)
sdotall (Allows . (dot) to match line terminators)
vvmode (https://github.com/tc39/proposal-regexp-v-flag)

Darty-Ai includes the u and g flags by default. Other flags (like i, m, or v) can be added manually after the closing /.
You can also use patterns like \p{Emoji} without slashes, if no extra flags are needed.

Replacing and Removing Text

replace is used to change the contents of the text.
There is no need to quote find or replace strings, replace: Darty Ai is the same as replace: "Darty Ai".
To remove the find words, set replace to "", '' or ``, leaving replace blank will not work.
You can however set the default value to "" by entering replace: "" in the property cell, bank cells will then cause the template string to be removed.

To replace a text frame with the contents of a file use the Place method.

replaceEscaped

replaceEscaped lets you type escaped characters into the replacement text instead of pasting the character itself. When the value is parsed, supported escape sequences are converted before the replacement text is applied. replaceJS is a synonym for replaceEscaped and can be used interchangeably.

Use it when you need line breaks, tabs, Unicode symbols, emoji, or invisible spacing characters in a text replacement.

Supported escape forms:

  • \n, \u000A, \x0A, \u{A}: forced new line ⌟
  • \r, \u000D, \x0D, \u{D}: carriage return ¶
  • \t: tab
  • \s: regular space
  • \uXXXX: a 4-digit Unicode value
  • \xXX: a 2-digit hex value
  • \u{...}: a full Unicode code point, useful for symbols and emoji

Examples:

  • Row 1\nRow 2: inserts a forced new line between Row 1 and Row 2
  • Row 1\u000ARow 2: same result as \n
  • Title\rSubtitle: inserts a carriage return
  • Column 1\tColumn 2: inserts a tab
  • Hello\sWorld: inserts a normal space
  • Copyright \u00A9 2026: becomes Copyright © 2026
  • Keep\u00A0Together: inserts a non-breaking space
  • Arrow \u2192: becomes Arrow →
  • Smile \u{1F600}: becomes Smile 😀
  • A\x26B: becomes A&B

Literal backslashes:

  • \\n stays as the literal characters \n
  • \\u00A0 stays as the literal characters \u00A0
  • Unsupported escapes such as \q are left as \q

Text Attributes

The following flat spreadsheet properties can be set.

find, grep / regex, flags, mode, replace, replaceEscaped / replaceJS, tagSearch, allText, autoLeading,
baselineOption / position, baselineShift, charStyle / characterStyle, characterDirection / charDirection,
clearCharacterOverrides, clearParagraphOverrides, clearOverridesOfWholeParagraph, color / fillColor, composer,
everyLineComposer, fillSwatch / swatch, firstLineIndent, fittingMethod, fitTopLines, font / fontFamily,
fontName, fontStyle / style, fontSize, justification, kerningType, language, leading, leftToRight,
lines, minFontSize, maxFontSize, overprintFill, overprintStroke, paraStyle / paragraphStyle,
paragraphDirection / paraDirection, rotation, strikeThrough, storyDirection, strokeColor, strokeSwatch,
strokeJoin, strokeWidth, tracking, underline

Styles and Overrides

You can apply paragraph and character styles using the paraStyle / paragraphStyle and charStyle / characterStyle properties.
By default overrides will not be removed.
Use the clearCharacterOverrides and clearParagraphOverrides properties to clear the paragraph and character styles overrides of the text being targeted.
Use the clearOverridesOfWholeParagraph property to clear both the paragraph and character styles overrides of the entire paragraph.

Sample Spreadsheet and Screenshots

image
details*image
texttexttexttexttexttextplace
fontNamefind: namereplacefontSizecolorfind: #replacefind: birthreplacefind: deathreplacefind: termreplaceunderlinefind: partymode: allreplacecolorpositionfit: fillpath: ~/Desktop/place/files_to_place/Presidents/
fill
Adobe Caslon PronameGeorge Washington18#999#1birth1732death1799term1789 - 1797TRUEpartyallUnaffiliated#999fill1_George_Washington.jpg
Adobe Clean Bold SemiCondensed ItalicnameThomas Jefferson18#EA9978#2birth1735death1826term1797 – 1801partyallFederalist#EA9978fill2_Thomas_Jefferson.jpg
Adobe Garamond PronameJohn Adams24#008000#3birth1743death1826term1801 – 1809partyallDemocratic-Republican#008000fill3_John_Adams.jpg
Adobe Garamond Pro BoldnameJames Madison18#008000#4birth1751death1836term1809 – 1817partyallDemocratic-Republican#008000fill4_James_Madison.jpg
CouriernameJames Monroe18#008000#5birth1758death1831term1817 – 1825partyallDemocratic-Republican#008000superfill5_James_Monroe.jpg

Compare each row in the spreadsheet below with its associated screenshot below. The text frame is tagged 'details' The font has been applied to the entire text frame, the other properties have been set to the individual finds, note the * in the top tagSearch row

Original Artwork

Original Template

Row - 1

Row - 1

Offset Row - 2

Row - 2

Row - 3

Row - 3

Row - 4

Row - 4

Row - 5

Row - 5

Fitting Methods

The fittingMethod property changes the font size or the text frames height to fit a frame's contents.

With it you can automatically:

  • Decrease the font size to make sure that text does not overflow.
  • Increase the frame height to make sure that text does not overflow.
  • As much as possible, fill the frame with it's contents by increasing or decreasing the font sizes.
  • Make a paragraph fill the text frame width.

The following values can be used: shrinkText, fitFrame, fitText and none.

You can specify specific frames to fit by using a tagSearch, otherwise set the tagSearch to * and all frames will be processed.
If you use the find property then only the paragraph containing the search string will be fitted unless you set the allText property to true.

fittingMethod works on text on paths (other than the fitFrame option) and in area text frames that have not been set to auto size, it does not work on point frames or area frame that have been set to auto size.

  • shrinkText shrinks the font sizes of overflowing frames so that they no longer overflow.
  • fitFrame will increase or decrease the height of the text frame so that the frames entire contents fits in it.
  • fitText resizes the fonts to, as much as possible, fill the entire frame with it's contents.
    If you use the find property to specify specific text then by default the paragraph containing that text will be fitted to the width of the text frame.
    If you set the allText property to true, the entire contents of the frame will be fitted to the frame in the same way it does when using the tagSearch property.

Note: You can an "Overset Text Fitting" option on the export tab to apply shrinkText and fitFrame to all texts in the document

Font Min and Max

Set minFontSize and maxFontSize when using fitText or shrinkText
(native dispatch names fitToFrame and shrinkToFrame). By default, Darty-Ai
clamps fitted sizes to these bounds. A minimum can leave text overset; limits
also take precedence over the starting size when shrinking. Mixed font sizes
and leading remain proportional where possible. If both bounds cannot preserve
the ratio, the largest runs are capped and the smaller runs raised to the minimum.

The boolean clampTextSize defaults to true. Set it to false
to restore pre-fitting font sizes when a fit exceeds a limit. Replacement content
and other formatting changes remain applied. The Clamp Text Size checkbox is on by default in the Text tool. Builder
uses a tri-state: Unset uses the default, On writes true, and Off writes false.
Tables uses a tri-state to preserve inherited settings.

Font Size Warning controls the message independently: Unset uses the
Text default (Warn), None suppresses the limit message, Warn reports a
warning, and Error reports an error. In the API use fontSizeWarning with
"none", "warn", or "error"; omitted, "", and "unset" use the default.
Actual fitting failures remain errors. Text error reporting does not undo the fit.
These font-size controls do not change justification-only or frame-height fitting.

For example, retain the original size silently when a fit is outside the limits:

dispatch("com.darty.event.text", {
  tagSearch: "caption",
  fittingMethod: "shrinkToFrame",
  minFontSize: 8,
  maxFontSize: 24,
  clampTextSize: false,
  fontSizeWarning: "none"
});
*
text
findfittingMethod
none
fitText
shrinkText
fitFrame
browndon't seem to make no difference what goes here!

Compare each row in the spreadsheet below with its associated screenshot below. The text frame is tagged 'details' The font has been applied to the entire text frame, the other properties have been set to the individual finds, note the * in the top tagSearch row

Original Artwork

Original Template - Row - 1

Row - 2

Row - 2

fittingMethod: fitText

The size of the text in each text frame has been proportionally increased or decreased so that the text, as much as possible, fills the frames and does not overflow

Offset Row - 3

Row - 3

fittingMethod: shrinkText

The size of the text in the overflowing text frames have been proportionally decreased so that they no longer overflow

Row - 4

Row - 4

fittingMethod: fitFrame

The height of the overflowing area text frames is increased so it's text no longer overflows
Note: the size of the type on path frame is not changed and the text still overflows the path

Row - 5

Row - 5

Text-Direction & Composer Features

Darty-Ai provides fine-grained control over text direction,
essential for accurate typesetting in Arabic, Hebrew, and similar right-to-left (RTL) languages.
Middle Eastern, Chinese, Japanese, and other language-specific typographic features can also be
applied using paragraph and/or character styles — allowing full control over font behavior, punctuation, alignment, and more.

  1. Composer
    Governs how the layout engine handles character flow, line breaks, and justification in this direction (rtl/ltr) using a particular composer.

  2. Story Direction
    Sets the base writing direction for the whole story (the entire continuous text flow).
    This is the “default” direction that new paragraphs and characters will inherit from.

  3. Paragraph Direction
    Overrides the story direction for that one paragraph.
    Useful if you have an RTL story but need an LTR heading in the middle, or vice versa.

  4. Character Direction
    Overrides paragraph direction for specific characters or spans.
    The default option here usually means “follow the paragraph/story direction.”

Language

The language property can be used to set the language of text.
This will tell the spell-checker to check the text in the correct language.

The valid values are:

  • The values you see in Adobe's (English UI's) character panel, for example English: UK, English: US*, Norwegian: Bokmal, German: 2006 Reform, French.
  • The values without the specific locale, will use the more commonly used locale, for example English will set English: US (Even in the UK), German will set German: 2006 Reform because that is currently more commonly used.
  • The ISO 639-1, 2 digit language code , for example en, fr, de
  • The ISO 639-1, 2 digit language code combined with the ISO 3166-1 alpha-2 Country codes, casing, spacing, and use of _ and - are flexible, for example en-US, en_US, frfr, frca
  • The The ISO 639-2, 3 digit language code

Note: Different fonts support different sets of languages. Some languages could be unavailable because they aren't supported by a particular font.

UI Name 1ISO 639-1 (2-digit) 2ISO 639-1 + ISO 3166-1 3ISO 639-2 (3-digit)Alternative 1
Albaniansqsq-ALsqi
Arabicarar-SAara
Belarusianbebe-BYbel
Bengalibnbn-INben
Bulgarianbgbg-BGbul
Burmesemymy-MMmya
Catalancaca-EScat
Chinesezhzh-CNzho
Croatianhrhr-HRhrv
Czechcscs-CZces
Danishdada-DKdan
Dutch: 2005 Reformnlnl-NLnldDutch, Dutch 2005
Dutch: Old RulesNo 2 Digit Codenl-BEnlold 4
English: CanadianNo 2 Digit Codeen-CANo 3 Digit CodeCanadian English
English: UKNo 2 Digit Codeen-GBNo 3 Digit Code
English: USenen-USengEnglish
Estonianetet-EEest
Farsifafa-IRfas
Finnishfifi-FIfin
French: Canadianfrfr-CANo 3 Digit Code
Frenchfrfr-FRfra
German: 1996 ReformNo 2 Digit CodeNo CodeNo 3 Digit CodeGerman 1996
German: 2006 Reformdede-DEdeuGerman German 2006
German: Old RulesNo 2 Digit CodeNo Codedeold
German: Swiss 2006 ReformNo 2 Digit CodeNo Codeswiss 4Swiss Swiss 2006
German: Swiss Old RulesNo 2 Digit CodeNo Codedechold 4
Greekelel-GRell
Gujaratigugu-INguj
Hebrewhehe-ILheb
Hindihihi-INhin
Hungarianhuhu-HUhun
Icelandicisis-ISisl
Indonesianidid-IDind
Italianitit-ITita
Japanesejaja-JPjpn
Kannadaknkn-INkan
Khmerkmkm-KHkhm
Laololo-LAlao
Latvianlvlv-LVlav
Lithuanianltlt-LTlit
Malayalammlml-INmal
Marathimrmr-INmar
Norwegian: Bokmalnbnb-NOnobNorwegian, Bokmal
Norwegian: Nynorsknnnn-NOnnoNynorsk
Oriyaoror-INori
Polishplpl-PLpol
Portuguese: BrazillianNo 2 Digit Codept-BRNo 3 Digit CodeBrazillian
Portugueseptpt-PTpor
Punjabipapa-INpan
Romanianroro-ROron
Russianruru-RUrus
Serbiansrsr-RSsrp
Sinhalesesisi-LKsin
Slovaksksk-SKslk
Slovenianslsl-SIslv
Spanisheses-ESspa
Swedishsvsv-SEswe
Tamiltata-INtam
Telugutete-INtel
Thaithth-THtha
Turkishtrtr-TRtur
Ukrainianukuk-UAukr
Vietnamesevivi-VNvie

1 Casing, spacing, and use of : are flexible.
2 Casing is flexible.
3 Casing, spacing, and use of _ and - are flexible
4 Alterative code
* We will allow for English: USA as well as English: US in our next release 😊.
We will add languages as per demand and funding 💰.

Text Properties

PropertyDescription
* 
Set to false if you want the method to be skipped in a particular row.
Valid Values: true or false
allText 
When using font-size fittingMethod operations, the allText parameter can be used to control whether the font-size changes affect a specific range, or the entire text-frame. If true, affects entire text-frame. Valid Values: true or false. If the targeted item is a text-frame, this setting is set to true by default, and if the target is a range, then it is false.
autoLeading 
Sets the auto-leading character attributes property.
baselineOption 
The position (and size) of the text in relation to the baseline
Valid Values: normal, superscript super, subscript sub
baselineshift 
The baseline shift amount, in points.
characterStyle 
The case sensitive name of the character style to apply, be default overrides will not be cleared, to clear them use the clear overrides properties
Example Values: My Char Style, Character Style 1
characterDirection 
Text-direction of a character. Values are: ltr, rtl or default
composer 
The text composer to use
Valid Values:
Adobe, ltr, latin or cjk [Default] for Latin and CJK
middleEastern, middleEast, worldReady, rtl, Hebrew, Arabic or complex for complex scripts like Hebrew, Arabic, Thai, Vietnamese, and Indic languages
adornment is a third composer, we don't know what it is used for!
Add singleLine or multiLine to the composer to set both the composer and the single or multiline properties: adobeSingleLine, middleEasternSingleLine, meSingleLine, adobeMultiLine, middleEasternMultiLine, meMultiLine
fillColor 
The fill color of the text
Example Values: orange (CSS Orange), 0 40 100 0 (CMYK orange), 255 128 0 or #ff8000 or ff8000 (RGB Orange) lab 66 44 74 Orange (Create / Change a Swatch "Orange" with Lab values), /Orange (use an existing swatch called Orange), none
See Swatch Methods for a description of swatch and color descriptions
clearCharacterOverrides 
Whether or not to clear all the character style overrides in the text being targeted.
Valid Values: false[Default] ortrue
clearParagraphOverrides 
Whether or not to clear all the paragraph and character style overrides of the text being targeted.
Valid Values: false[Default] ortrue
clearOverridesOfWholeParagraph 
Whether or not to clear the paragraph and character style overrides in the entire paragraphs containing the targeted text.
Valid Values: false[Default] ortrue
everyLineComposer 
Whether the every-line or single-line version of the text composer should be used
Valid Values: true or false [Default]
fillSwatchName 
The swatch name of a swatch-color to be applied to the character fills of text
See Swatch Methods for a description of swatch and color descriptions
firstLineIndent 
The fist line indent of the paragraph
Example Values: 12.7, 3mm, .5", 0p6
fittingMethod 
The fitting operation to apply to text.
Valid Values: shrinkText, fitFrame, fitText
flags 
Used along with the grep text sub-method, the flags parameter is used to specify GREP regular-expression flags for it.
Valid Values: n, i, m, s, v
fontSize 
The font size to use
Example Values: 12, 12px, .5", 1cm
fontFamily 
The case insensitive name of the font family to use, if given the the style should be set using the fontStyle / style property
Example Values: myriad Pro, Arial Black ("Black" is part of the name and not the style), Adobe 黑体 Std R
fontStyle 
The case insensitive name of the font style to use, can be used together with font / fontFamily but not fontName
If the style does not exist then the style will not be changed
Example Values: Bold, Italic, Condensed, semibold
fontName 
The name of the font including the font style
Example Values: Myriad Pro Condensed, Arial Black Regular
regex 
Replace text using modern ECMAScript-style regex
justification 
The justification of the paragraph
Valid Values: left, right, center, fullLeft, fullRight, fullCenter, fullLeft, fullRight, fullCenter, full
kerningType 
The kerning type of the text
Valid Values: noKerning, metric, optical, metricRomanOnly
language 
The language of the text, used for hyphenation and spell checking
See Language for a list of rules and values.
Example Values: English: US, Finnish, French, French: Canadian, German: 1996 Reform, German: Old Rules, etc. Note: Different fonts support different sets of languages. Some languages could be unavailable because they aren't supported by a particular font.
leading 
The leading to use
Example Values: 12, 12px, .5", 1cm
leftToRight 
Whether or not to apply a left to right character direction
Valid Values: true [Default] or false suitable for right to left languages like Hebrew and Arabic
lines 
When fitting text using fittingMethod operations with fitText or shrinkText options, the lines parameter can be used ensure the paragraph ends up with a specified amount of text-lines.
minFontSize 
When fitting text using fittingMethod operations with fitText or shrinkText options, the minFontSize parameter sets the lower bound in points. Sizes clamp to it by default; clampTextSize:false restores pre-fitting sizes instead.
maxFontSize 
When fitting text using fittingMethod operations with fitText or shrinkText options, the maxFontSize parameter ensures the text does not end up with a font-size over this specified number (in points).
clampTextSizeBoolean, default true. Clamp font-size fitting to min/max; false restores the original sizes when a fit exceeds either bound. Applies to fitToFrame / shrinkToFrame.
fontSizeWarningunset, none, warn, or error; omitted/empty/unset defaults to warn for Text. Controls font-limit reporting independently of clamping.
mode 
The type of text / template to target
Valid Values: all (targets text as is, no template parenthesis use), {( (templates must be surrounded with either double curly or round parentheses) [Default], {{ (templates must be surrounded with double curly parentheses), (( (templates must be surrounded with double round parentheses) See Modes
overprintFill 
Whether or not to overprint the fill
Valid Values: false or true
overprintStroke 
Whether or not to overprint the stroke
Valid Values: false or true
paragraphStyle 
The case sensitive name of the paragraph style to apply, by default overrides will not be cleared, to clear them use the clear overrides properties
Example Values: My Para Style, Paragraph Style 1
paragraphDirection 
Specifies the right-to-left or left-to-right text-direction of a Paragraph. Valid Values: ltr or rtl.
strikeThrough 
Whether or not strike through the text
Valid Values: false or true
storyDirection 
Text-direction of a Story. All contained paragraphs would now inherit this text-direction. Values are: ltr or rtl.
strokeColor 
The stroke color of the text
Example Values: orange (CSS Orange), 0 40 100 0 (CMYK orange), 255 128 0 or #ff8000 or ff8000 (RGB Orange) lab 66 44 74 Orange (Create / Change a Swatch "Orange" with Lab values), /Orange (use an existing swatch called Orange), none
See Swatch Methods for a description of swatch and color descriptions
strokeSwatch 
The name of the swatch to apply to the stroke color of the text
See Swatch Methods for a description of swatch and color descriptions
strokeJoin 
The shape to apply to the stroke's join
Valid Values: miter, round, bevel
strokeWidth 
The width of the stroke to apply
Example Values: .5, 1pt, .5mm
underline 
Whether or not to underline the text
Valid Values: false or true
replace 
The replacement text value to populate the text-frame or range with. See Replacing and Removing Text
replaceEscaped 
The replacement text value to populate the text-frame or range with, with JavaScript special characters escaped. See replaceEscaped
Example Values: Row 1\nRow 2, Title\rSubtitle , Column 1\tColumn 2 ,Arrow \u2192, Smile \u{1F600}
rotation 
Rotation of characters, in degrees (0-360)
skip 
Set to true is you want the method to be skipped in a particular row.
See * and Skip for details.
Valid Values: true or false
tracking 
Set the tracking (space between characters) value for the text (in points).
find 
The text / template you want changed (Case sensitive), specify a tagSearch if you want to limit the text changed to specific text frames. Use mode to specify what type of template to target.
Example Values: name, address
tagSearch 
Specify a tagSearch if you want to limit the text changed to specific text frames. If no find is provided, the entire text frame will be changed.
Example Values: cats, cats | dogs, animals & !dogs

Markdown replacement

Use Parse Markdown in the Text editor to insert formatted replacement copy. For a new sheet, use replace plus parseMarkdown:true; a markdown property always parses its value.

PropertyDescription
parseMarkdown 
Parses Markdown in replacement text. False by default.
markdown 
Formatted replacement text; always parses Markdown. Supported in modes 0–4.
markdownStyles 
Formatting overrides for all, strong, emphasis, underline, strikethrough, code, and h1–h6. Choose a named preset in Formatting → Markdown styles to generate this object.

For example, replace a tagged text frame using mode 4 and New **weatherproof** finish. Strong and emphasized spans become styled text. Headings, lists, links, line breaks, and supported simple HTML are also parsed. A Markdown pipe table becomes tab-separated text here; use Tables for a managed Illustrator table.

Markdown replacement cannot be combined with regExFlag. Choose plain regex replacement when capture substitutions are required. The Markdown style all affects marked spans, not ordinary text; construct-specific mappings override it.

Area-text frame layout

These properties control the internal layout of an Illustrator area-text frame. They do not create a managed table. Omit a field to preserve its existing setting.

PropertyDescription
rowCount 
/
columnCount 
Internal text rows and columns, at least 1.
rowMajorOrder 
True fills rows first; false fills columns first.
rowGutter 
/
columnGutter 
Nonnegative spacing between internal rows/columns; accepts units.
insetSpacing 
Nonnegative inset on all sides; accepts units.
opticalAlignment 
Enables optical margin alignment.
lineOrientation 
horizontal, verticalRightToLeft, or verticalLeftToRight.
verticalAlignment 
top, center, bottom, or justify.
textAntiAlias 
Text-frame rasterization setting: none, sharp, crisp, or strong.

For a two-column text frame, set columnCount to 2, columnGutter to 6pt, and insetSpacing to 4pt. Test the longest record for overset after changing the available text area.

Last Updated: 11/13/26, 3:36 AM
Contributors: Trevor, Vasily Hall
Prev
Template
Next
Transform Methods