FONT

Use the FONT variable to apply your own characteristics to one or more of the standard fonts. The characteristics you can control are the font-face, the pitch and whether the text is emboldened. The font in effect is determined by the DEFAULT_FONT variable.

Use the following syntax to specify the characteristics:

FONT std-font-name font-face font-pitch [BOLD]
where std-font-name can be one of:
  • TRADITIONAL or TRADITIONAL-FONT
  • FIXED or FIXED-FONT
  • LARGE or LARGE-FONT
  • MEDIUM or MEDIUM-FONT
  • SMALL or SMALL-FONT

For example:

FONT TRADITIONAL COURIER 10 BOLD

sets the TRADITIONAL font (when in effect) to 10pt Courier, in bold.

Also, If FONT is set to 2, a std-font-name of TRADITIONAL is used. If any other numerical value is set, a std-font-name of FIXED is used.

This variable has meaning only on graphical systems such as Windows, and must be set in the configuration file before you execute the program. Altering the value of FONT from inside your program has no effect.

Note: This variable cannot be read with the ACCEPT FROM ENVIRONMENT statement, nor can be used to update characteristics for user-defined fonts created using W$FONT.