GRAPHIC SET FONT statement  

Purpose

Select a font for the GRAPHIC PRINT, GRAPHIC INPUT, and GRAPHIC LINE INPUT statements.

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.).

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.

Prior to any graphical operations, the graphic target must first be selected with GRAPHIC ATTACH.  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 may not be supported in future versions of PowerBASIC, so update your code to use the new syntax.

See also

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