TClrFont.Create(String,Single,TFontStyle_Set) Constructor

Initializes a new instance of the TClrFont class using a specified size and style.

Namespace: CNClrLib.Control.Graphics
public
 constructor Create(AFamilyName: String; ASize: Single; AStyle: TFontStyle_Set = []); overload;

Parameters

AFamilyName
Type: String

A string representation of the FontFamily for the new Font.

ASize
Type: Single

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

AStyle
Type: System.Void

The FontStyle of the new font.

The resulting font has its Unit property set to Point. 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.