Platform SDK: Windows User Interface

FONT Statement

The FONT resource-definition statement sets the font with which the system will draw text in the dialog box. The font must have been previously loaded, either from the WIN.INI file or by calling the LoadResource function.

FONT pointsize, "typeface"

Parameters

pointsize
Specifies the size, in points, of the font.
typeface
Specifies the name of the typeface. This name must be identical to the name defined in the [FONTS] section of WIN.INI. This parameter must be enclosed in quotes (").

Example

The following example demonstrates the use of the FONT statement:

FONT 12, "MS Shell Dlg" 

See Also

DIALOG, LoadResource