LB Booster
« Changing the Printer Font »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 04:18am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
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
BBC BASIC Home Page
Liberty BASIC forum (the original)

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


member is offline

Avatar




Homepage PM


Posts: 1348
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 »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls