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

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

Creates new Font class instance. Here you can specify font typeface name, its size, and if font should be bold and/or italic.

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, _
	unitConverter As UnitConverterObject _
)
C#
public Font(
	string familyName,
	float size,
	bool bold,
	bool italic,
	UnitConverterObject unitConverter
)

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.
unitConverter

Type: Aurigma.GraphicsMill.UnitConverterObject

A UnitConverterObject descendant class which is used to grab resolution (DPI) and unit.

See Also

Reference