<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > XPRINT > XPRINT_SetFont |
Description
Select a font for the XPRINT statement
Syntax
XPRINT_SetFont(hFont)
Returns
None
Parameters
Name |
Type |
Optional |
Meaning |
hFont |
Number |
No |
The numeric handle returned by the Font_New statement when the font was created |
Remarks
The font specified by hFont is selected to be used by XPRINT statements. This is the most efficient way to change fonts and their general appearance (size, style, etc.).
You can predefine 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_SetFont.
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.
If you specify a hFont of zero, the font is changed back to the original default font.
Restrictions
See also
Examples