Macromedia fireworks mx 2004-extending fireworks 用户手册

下载
页码 296
Document functions
233
Returns
Nothing.
Description
Sets the horizontal flow direction of the selected text items. 
dom.setTextHorizontalScale()
Availability
Fireworks MX.
Usage
dom.setTextHorizontalScale(horizScale)
Arguments
horizScale
  A floating-point number that describes how much to scale the text characters 
horizontally. A value of 
1.0
 is normal. Values greater than 
1.0
 make the characters wider, and 
values less than 
1.0
 make the characters narrower.
Returns
Nothing.
Description
Sets the horizontal scaling of text. For vertical text mode, this function stretches or compresses the 
height of the characters.
dom.setTextLeading()
Availability
Fireworks MX.
Usage
dom.setTextLeading(leadingValueleadingMode)
Arguments
leadingValue
  A floating-point number that determines the spacing between two lines of text. 
The meaning of 
leadingValue
 depends on 
leadingMode
.
leadingMode
  Acceptable values are "
exact
" or "
percentage
". If set to "
exact
", 
leadingValue
 is the number of pixels between two lines of text. If set to "
percentage
", 
leadingValue
 is a percentage of the default leading; 1.0 is the default leading, 0.5 is half the 
default leading, and 2.0 is double the default leading.
Returns
Nothing.
Description
Sets the leading between lines of text. For vertical text mode, the leading is the space between two 
adjacent columns of text.