FONT statement

Defines the font with which the system will draw text in the dialog box. The font must have been previously loaded; for example, by calling the LoadResource function.

FONT pointsize, "typeface", weight, italic, charset


The size of the font, in points.


The name of the typeface. This parameter must be enclosed in quotes (").


The weight of the font in the range 0 through 1000. For example, 400 is normal and 700 is bold. If this value is 0, the default weight is used. For a list of predefined values, see the FW_* values defined in WinGDI.h.


Indicates an italic font if set to TRUE.


The character set. For a list of values, see the lfCharSet member of the LOGFONT structure.


The following example demonstrates the use of the FONT statement:

FONT 12, "MS Shell Dlg"

See also