User Guide

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