GRAPHIC SET FONT statement  

Purpose

Select a font for use on the graphic target.

Syntax

GRAPHIC SET FONT fonthndl&

fonthndl&

The numeric handle returned by the FONT NEW statement.

Remarks

The font specified by fonthndl& is selected to be used by all of the following GRAPHIC PRINT, GRAPHIC INPUT, and GRAPHIC LINE INPUT statements.  This is the most efficient way to change fonts and their general appearance (size, style, etc.). If you specify a fonthndl& of zero, the font is changed back to the original default font chosen by PowerBASIC.

You can predefine virtually any number of fonts and attributes by executing FONT NEW statements for each of them.  That makes them ready for immediate use when selected by GRAPHIC SET FONT.

If no specific font is selected, the default font is MS Sans Serif, 8 point, with no style attributes.

Restrictions

GRAPHIC SET FONT replaces GRAPHIC FONT.  Note that the GRAPHIC FONT statement is no longer supported, so update your code to use the new syntax.

See also

FONT NEW, GRAPHIC ATTACH, GRAPHIC CELL, GRAPHIC CELL SIZE, GRAPHIC CHR SIZE, GRAPHIC INPUT, GRAPHIC LINE INPUT, GRAPHIC PRINT, GRAPHIC TEXT SIZE