Initializes a new instance of the Font class with the specified custom font file, size and unit of measure.

Namespace: Neodynamic.SDK.Printing
Assembly: Neodynamic.SDK.ThermalLabel (in Neodynamic.SDK.ThermalLabel.dll) Version: 5.0.3500.0 (5.0.3500.4)

Syntax

C#
public Font(
	string customFontFile,
	string customFontFileFamilyIndex,
	double size,
	FontUnit unit
)
Visual Basic
Public Sub New ( _
	customFontFile As String, _
	customFontFileFamilyIndex As String, _
	size As Double, _
	unit As FontUnit _
)
Visual C++
public:
Font(
	String^ customFontFile, 
	String^ customFontFileFamilyIndex, 
	double size, 
	FontUnit unit
)

Parameters

customFontFile
Type: System..::..String
The custom font file to use. It's the full path pointing out to the custom font file on local disk.
customFontFileFamilyIndex
Type: System..::..String
size
Type: System..::..Double
The size of the font measured in Points.
unit
Type: Neodynamic.SDK.Printing..::..FontUnit
The unit of measure for the font.

See Also