User Guide

Acrobat Forms - JavaScript Object Specification
45
textColor
Type: Array Fields: All Access: R/W
This property determines the foreground color of a field. It represents the text color for text,
button,orlist box fields and the check color for check box or radio button fields. Values are
defined the same as the fillColor property. Refer to the Color Arrays section for information on
defining color arrays and how values are set and used with this property.
var f = this.getField("MyField");
f.textColor = color.red;
In older versions of this specification, this property was
fgColor
. The use of
fgColor
is now
discouraged but for backwards compatibility is still valid.
textFont
Type: String Fields: Text, Combo, List & Button Access: R/W
The textFont property determines the font that is used when laying out text in a text field,
combo box, list box or button. Valid fonts are defined as properties of the “font” object as
follows:
Text Font Keyword
Times-Roman font.Times
Times-Bold font.TimesB
Times-Italic font.TimesI
Times-BoldItalic font.TimesBI
Helvetica font.Helv
Helvetica-Bold font.HelvB
Helvetica-Oblique font.HelvI
Helvetica-BoldOblique font.HelvBI
Courier font.Cour
Courier-Bold font.CourB
Courier-Oblique font.CourI
Courier-BoldOblique font.CourBI
Symbol font.Symbol
ZapfDingbats font.ZapfD