LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to set font size for printing from command line? (https://www.linuxquestions.org/questions/linux-general-1/how-to-set-font-size-for-printing-from-command-line-450965/)

aslevin 06-02-2006 01:04 PM

how to set font size for printing from command line?
 
I'm trying to print various types of text file to my deskjet 880c printer, and I would like to change the default font size to something smaller like 7 or 8pt.

I also want to make it print in 2 columns of a given width. I've tried this using the command...
cat myfile | pr --columns=2 --width 80 | lp
...but it comes out even uglier that just lp'ing it.

I'm hoping some nice neat very simple if you know it solution exists to kill both these birds with one stone, and that someone who knows it will read this soon and they'll all print happily ever after...

And if there was some utility for doing all this that could even recognise php code and use colour output (like vim does on screen) then they'd all print euphorically ever after...

Thanks in advance,
A.

Tinkster 06-02-2006 05:45 PM

Hi, and welcome to LQ!

You may want to have a look at a2ps


Cheers,
Tink


All times are GMT -5. The time now is 12:21 AM.