MindFusion.Charting for JavaScript Programmer's Guide
Font Constructor
See Also
 






Initializes a new instance of the Font class with the specified attributes.

Namespace: MindFusion.Drawing
File: Font.js

 Syntax

JavaScript  Copy Code

function Font (name, [size, [bold, [italic, [underline]]]])

 Parameters

name

Type: String
String. The font name.

size
Optional.

Type: Number
Number. The font size.

bold
Optional.

Type: Boolean | FontStyle
Boolean | FontStyle. true if this font is bold, or false otherwise.

italic
Optional.

Type: Boolean
Boolean. true if this font is italic, or false otherwise.

underline
Optional.

Type: Boolean
Boolean. true if this font is underlined, or false otherwise.

 See Also

Font Class
MindFusion.Drawing Namespace