GxFont.Create

Syntax

Create(FamilyName: String; Size: Double; [Style: GxFontStyle = 0;] [Unit: GxUnit = 3]);

Parameters

FamilyName. Font name.

Size. Font size.

Style. Font style. Optional parameter, standard font is used by default.

Unit. Font size measurement units. Optional parameter, font size is measured in points by default.

Description

The Create constructor creates a font with specified parameters.

NOTE. Any units available in GxUnit can be used as font size measurement units except for GxUnit.Display.

Example

Function GetFont: IGxFont;
Var
    OutFont: IGxFont;
Begin
    OutFont := New GxFont.Create("Arial"12, GxFontStyle.Bold, GxUnit.Point);
    Return OutFont;
End Function GetFont;

The specified procedure returns font with specified parameters.

See also:

GxFont