Creates a new Font using specified parameters.

Namespace:  SGP.XUtility
Assembly:  SGP.XUtility (in SGP.XUtility.dll)
Version: 1.2.3019.18718

Syntax

C#
public static Font CreateFont(
	Font font,
	float emSize,
	FontStyle fontStyle,
	bool throwException
)

Parameters

font
Type: System.Drawing..::.Font
A string representation of the font family for the new font.
emSize
Type: System..::.Single
The em-size of the new font in the units specified by the unit parameter.
fontStyle
Type: System.Drawing..::.FontStyle
The style of the new font.
throwException
Type: System..::.Boolean
When creation failed, exception is throws or creates another similar font.

Return Value

Returns a new font.

See Also