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