PrinterFont$

From Liberty BASIC Family
Jump to navigation Jump to search
Supported in Just BASIC Supported in Liberty BASIC Not supported in Liberty BASIC 5 Not supported in Run BASIC

Description

Sets the font used when LPRINTing to the printer.
See LPRINT and FONT.

Syntax

  1. PrinterFont$="fontName fontSize [font modifier]"

Hints

The font modifier is optional and includes bold, italic and underlined.
The last font set before a page is printed is used for all the text on that page.

Example

' set a fixed width, 12 pt. font
    PrinterFont$="Consolas 12"

' using a font variable to set fonts
    bigFont$="Courier_New 20 bold"
    PrinterFont$=bigFont$
' send content to printer
    lprint "Wow! Now that's a big, bold, font!"
    dump
    end

Useful Procedures

' Place a useful function or sub using this keyword here