78
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_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
Содержание FIREWORKS 8-EXTENDING FIREWORKS
Страница 1: ...Extending Fireworks ...
Страница 4: ...4 Contents ...
Страница 358: ...358 Fireworks JavaScript API ...
Страница 372: ...372 Index ...