This documentation is for the old version. Go to the latest Graphics Mill docs

Font Constructor (String, Single, Boolean, Boolean, Single, Single)

Creates new Font class instance. Here you can specify font typeface name, its size, and if font should be bold and/or italic. You can also specify resolution here (necessary if you are using units other than Pixel).

Namespace: Aurigma.GraphicsMill.Drawing
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Sub New ( _
	familyName As String, _
	size As Single, _
	bold As Boolean, _
	italic As Boolean, _
	horizontalResolution As Single, _
	verticalResolution As Single _
)
C#
public Font(
	string familyName,
	float size,
	bool bold,
	bool italic,
	float horizontalResolution,
	float verticalResolution
)

Parameters

familyName

Type: System.String

Font typeface name. You can change this value later through property Name.
size

Type: System.Single

Font size. You can change this value later through property Size.
bold

Type: System.Boolean

Value specifying if font should be bold. You can change this value later through property Bold.
italic

Type: System.Boolean

Value specifying if font should be italic. You can change this value later through property Italic.
horizontalResolution

Type: System.Single

Horizontal resolution (dots per inch - DPI). You can change this value later through property HorizontalResolution.
verticalResolution

Type: System.Single

Vertical resolution (dots per inch - DPI). You can change this value later through property VerticalResolution.

See Also

Reference