XPRINT SET FONT statement

Purpose | Select a font for the XPRINT statement.
Syntax | XPRINT 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 XPRINT 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 XPRINT SET FONT.

Prior to any XPRINT operations, a specific printer must first be selected with XPRINT ATTACH. If no specific font is selected, the default font is Courier New with no style attributes.

See also | FONT NEW, XPRINT, XPRINT ATTACH, XPRINT CHR SIZE, XPRINT TEXT SIZE