Creates a new Font using specified parameters.
Namespace:
SGP.XUtilityAssembly: SGP.XUtility (in SGP.XUtility.dll)
Version: 1.2.3019.18718
Syntax
C# |
---|
public static Font CreateFont( FontFamily fontFamily, float emSize, FontStyle fontStyle, GraphicsUnit graphicsUnit, byte charSet ) |
Parameters
- fontFamily
- Type: System.Drawing..::.FontFamily
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.
- graphicsUnit
- Type: System.Drawing..::.GraphicsUnit
The GraphicsUnit of the new font.
- charSet
- Type: System..::.Byte
A byte that specifies a GDI character set to use for this font.