Font Constructor (String, Single, FontStyle, GraphicsUnit)
Initializes a new Font using a specified size, style, and unit.
Assembly: System.Drawing (in System.Drawing.dll)
The em-size of the new font in the units specified by the unit parameter.
emSize is less than or equal to 0, evaluates to infinity or is not a valid number.
Windows Forms applications support TrueType fonts and have limited support for OpenType fonts. If the familyName parameter specifies a font that is not installed on the machine running the application or is not supported, Microsoft Sans Serif will be substituted.
The following code example demonstrates how to use the Font constructor. This example is designed to be used with Windows Forms. To run this example, paste this code into a form that contains a button named Button2, and associate the Button2_Click method with the Click event of the button.
Available since 1.1