Dreamweaver.getfontlist(), Dreamweaver.getfontstyles(), Dreamweaver.getkeystate() – Adobe Dreamweaver API Reference CS5 User Manual
Page 469

464
DREAMWEAVER API REFERENCE
Code
Last updated 8/27/2013
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.
dreamweaver.getKeyState()
Availability
Dreamweaver 3.