FontRegistry.CreateFont Method (String, String, Single, Single, Single)

Returns the Font instance with the given family name, style, size, and DPI, if such font is presented in the FontRegistry.

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

Syntax

C#
public Font CreateFont(
	string family,
	string style,
	float size,
	float dpiX,
	float dpiY
)

Parameters

family

Type: System.String

Font family name.
style

Type: System.String

Font style.
size

Type: System.Single

Font size.
dpiX

Type: System.Single

Horizontal resolution of the font's glyphs in DPI.
dpiY

Type: System.Single

Vertical resolution of the font's glyphs in DPI.

Return Value

Font having the given parameters.

See Also

Reference

Manual