User Guide

178 Chapter 8: Text
Formatting text or field cast members with Lingo or JavaScript
syntax
In addition to formatting text in any chunk expression, Lingo or JavaScript syntax can specify
anti-aliasing and kerning for an entire text cast member and control the appearance of the text’s
bounding rectangle.
Setting anti-aliasing and kerning with Lingo or JavaScript syntax
You can use Lingo or JavaScript syntax to specify anti-aliasing and kerning for a text cast member:
To specify whether Director anti-aliases text in a text cast member, set the antiAlias cast
member property.
To specify the size at which anti-aliasing in a text cast member takes effect, set the
antiAliasThreshold cast member property.
To specify automatic kerning for a text cast member, set the kerning cast member property.
To specify the size at which automatic kerning for a text cast member takes effect, set the
kerningThreshold cast member property.
For more information about these properties, see the Scripting Reference topics in the Director
Help Panel.
Formatting text boxes with Lingo or JavaScript syntax
Lingo or JavaScript syntax can specify the type of box that surrounds a text or field cast member.
For field cast members, script can also specify box characteristics such as borders, margins, drop
shadows, and height.
To specify the type of box around a text or field, set the boxType cast member property.
To specify the size of the border around a field, set the border field cast member property.
To specify the size of the margin inside a field’s box, set the margin field cast member property.
To specify the size of the drop shadow for a fields box, set the boxDropShadow field cast
member property.
To specify the height of a field’s box on the Stage, set the pageHeight field cast member
property.
For more information about these properties, see the Scripting Reference topics in the Director
Help Panel.
Setting text autotabbing and wrapping with Lingo or JavaScript syntax
Lingo or JavaScript syntax can set text autotabbing and wrapping.
To specify autotabbing for text or field cast members, set the autoTab cast member property.
To specify whether lines wrap in a field cast member, set the wordWrap cast member property.
For more information about these properties, see the Scripting Reference topics in the Director
Help Panel.