User Guide
62 Chapter 2: The Fireworks Object Model
TextAttrs object
The following table lists the properties of the TextAttrs object, along with their data types and,
where appropriate, acceptable values and notes.
use_fill Boolean If set to true, applies the fill property of the
pathAttrs object when applying the style. If
set to
false, ignores the fill property. The
default value is
false.
use_fillColor Boolean If set to true, applies the fillColor property
of the pathAttrs object when applying the
style. If set to
false, ignores the fillColor
property. The default value is
false.
use_textFont Boolean If set to true, applies the textFont property
of the pathAttrs object when applying the
style. If set to
false, ignores the textFont
property. The default value is
false.
use_textSize Boolean If set to true, applies the textSize property
of the pathAttrs object when applying the
style. If set to
false, ignores the textSize
property. The default value is
false.
use_textStyles Boolean If set to true, applies the textStyles property
of the pathAttrs object when applying the
style. If set to
false, ignores the textStyles
property. The default value is
false.
Property Data type Notes
alignment
string Acceptable values are "left", "center",
"right", "justify", and "stretch".
baselineShift
integer The number of pixels above (positive
numbers) or below (negative numbers) the
baseline by which the characters are shifted.
bold
Boolean Set to true for bold text, false for
normal text.
face
string The name of the font, such as Arial.
fillColor
string A color string that specifies the color of the
text (see “Color string data type” on page 11).
horizontalScale
float The relative width of the characters.
1.0 — normal width
< 1 — thinner than normal
> 1 — wider than normal
italic
Boolean Set to true for italic text, false for
normal text.
Property (read-only) Data type Notes