Adobe 38040334 API Reference - Page 416
dreamweaver.getFontStyles, dreamweaver.getNaturalSize, In Windows
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 416 highlights
DREAMWEAVER CS3 411 API Reference 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. Description Determines whether the specified modifier key is depressed. Arguments key • The key argument must be one of the following values: "Cmd", "Ctrl", "Alt", or "Shift". In Windows, "Cmd" and "Ctrl" refer to the Control key; on the Macintosh, "Alt" refers to the Option key. Returns A Boolean value that indicates whether the key is pressed. Example The following code checks that both the Shift and Control keys (Windows) or Shift and Command keys (Macintosh) are pressed before performing an operation: if (dw.getKeyState("Shift") && dw.getKeyState("Cmd")){ // execute code } dreamweaver.getNaturalSize() Availability Dreamweaver 4. Description Returns the width and height of a graphical object.