PrinterFont$

PrinterFont$ = fontSpec

Description:

Liberty BASIC 4 now lets you set the font used for LPRINTing text to the printer. The format used for specifying the font is the same as for specifying the font in a graphics window. See also How to Specify Fonts, LPRINT.

'set a courier 10 italic font

PrinterFont$ = "courier_new 10 italic"

The last font set before a page is printed is used for all the text on that page.

Usage:

'show the current printer font$

print PrinterFont$

lprint "This text will appear in "; PrinterFont$

dump

'set a courier 10 italic font

PrinterFont$ = "courier_new 10 italic"

lprint "This text will appear in "; PrinterFont$

dump