Graphics.CreateFont Method (String, String, Single)

Returns the Font instance with the given family name, style, and size, if such font is presented in this Graphics.FontRegistry. The font's DPI is the same as the DPI of the Graphics.

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

Syntax

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

Parameters

family

Type: System.String

Font family name.
style

Type: System.String

Font style.
size

Type: System.Single

Font size.

Return Value

Font having the given parameters.

Remarks

The font's DPI is the same as the DPI of the Graphics.

See Also

Reference

Manual