LB Booster
« Changing the Printer Font »

Welcome Guest. Please Login or Register.
Apr 29th, 2017, 1:20pm


Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
LB Umbrella forum
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Changing the Printer Font  (Read 40 times)
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1164
xx Changing the Printer Font
« Thread started on: Apr 13th, 2017, 09:21am »

I would have posted this at the LB Umbrella Forum, since the subject isn't specifically related to LBB, but annoyingly it has been closed.

Over at the LB Community Forum somebody has asked how to change, programmatically, the font used by LPRINT. This is a simple question with a straightforward answer, since it's a documented feature that Liberty BASIC has had since version 4:

Code:
    PrinterFont$ = "courier_new 10 italic"
    lprint "This text will appear in "; PrinterFont$
    dump 

Mysteriously, however, the replies at the Community Forum (from two LB 'experts') make no reference to this useful feature, but instead suggest that it is difficult or impossible to achieve ("To do it programmatically you would need to load, edit and save the .ini file then restart Liberty").

Why? Does PrinterFont$ not work properly? The above code seems to work for me, in LB 4.04 and LB 4.5.0. Of course it has the limitation that you can't change the font within a 'page' (a restriction lifted in LBB) but the OP didn't specifically ask for that.

So what's the problem, or did two people far more experienced in LB than I am simply forget about this feature?

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Donate $6.99 for 50,000 Ad-Free Pageviews!


This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls