General editing functions
403
dreamweaver.getFontList()
Availability
Dreamweaver 3.
Description
Gets a list of all the font groups that appear in the text Property inspector and in the Style
Definition dialog box.
Arguments
None.
Returns
An array of strings that represent each item in the font list.
Example
For the default installation of Dreamweaver, a call to the
dreamweaver.getFontList()
function
returns an array that contains the following items:
•
"Arial, Helvetica, sans-serif"
•
"Times New Roman, Times, serif"
•
"Courier New, Courier, mono"
•
"Georgia, Times New Roman, Times, serif"
•
"Verdana, Arial, Helvetica, sans-serif"
dreamweaver.getFontStyles()
Availability
Dreamweaver 4.
Description
Returns the styles that a specified TrueType font supports.
Arguments
fontName
•
The
fontName
argument is a string that contains the name of the font.
Returns
An array of three Boolean values that indicates what the font supports. The first value indicates
whether the font supports
Bold
, the second indicates whether the font supports
Italic
, and the
third indicates whether the font supports both
Bold
and
Italic
.
000_DW_API_Print.book Page 403 Wednesday, August 20, 2003 9:14 AM
Summary of Contents for DREAMWEAVER MX 2004-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...