This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.
This version is copyright and may only be used for local testing purposes. It may not be distributed.
Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.
Description
Set the font to be used for a particular Windows Control
Syntax
<controlName>.Font(FontName [, Points, Style, Charset, Pitch])
Returns
Number.
Parameters
Name |
Type |
Optional |
Meaning |
FontName |
String |
No |
Name of the font |
Points |
Number |
No |
Size of the font, in points |
Style |
Number |
No |
Font style attribute. Any of the following values can be combined or used alone:
0 Normal
Some fonts specify "external leading" in their definition. In some cases, it only applies to certain point sizes of a font. External Leading specifies that one or more blank pixels are added to the bottom of each character when displayed. This has an impact on character position and should be considered when creating a font.
Normally, the font is created without regard to external leading. That is, it's created so that the visible character face fills the requested point size. However, if the Leading Option is used, the font will be created so that the visible character face plus the external leading (if any) fills the point size. In these cases, the character may appear slightly smaller. |
Charset |
Number |
CharSet identifier.
0 ANSI CharSet |
|
Pitch |
Number |
Pitch and Font Family attribute. One of each group of values can be combined or used alone:
0 Default |
Remarks
Restrictions
See also
Examples
control add label name MyLabel, hDlg, %lTitle, "", 5, 5, 100, 25
' Set the font
MyLabel.Font "MS Sans Serif", 12