Initializes a new instance of the Font class with the specified attributes.
Namespace: MindFusion.Drawing
File: Font.js
JavaScript Copy Code |
---|
function Font (name, [size, [bold, [italic, [underline]]]]) |
Type: String
String. The font name.
Type: Number
Number. The font size.
Type: Boolean | FontStyle
Boolean | FontStyle. true if this font is bold, or false otherwise.
Type: Boolean
Boolean. true if this font is italic, or false otherwise.
Type: Boolean
Boolean. true if this font is underlined, or false otherwise.