Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Font Constructor (FontFamily, Single)


Initializes a new Font using a specified size.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public Font(
	FontFamily family,
	float emSize


Type: System.Drawing.FontFamily

The FontFamily of the new Font.

Type: System.Single

The em-size, in points, of the new font.

Exception Condition

emSize is less than or equal to 0, evaluates to infinity, or is not a valid number.

The resulting font has its Style property set to Regular and its Unit property set to Point.

.NET Framework
Available since 1.1
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft