You are not logged in.

#1 2010-02-12 08:41:28

Lux Perpetua
Member
From: The Local Group
Registered: 2009-02-22
Posts: 69

How do I pick the font when printing plain text?[SOLVED: use enscript]

Hi, folks. I have a very simple question. I often need to print plain text files, and I prefer to use the command line. I'm using CUPS, so I just do, for example:

lp -dpdf text.txt

(here "pdf" is just my cups-pdf virtual PDF printer). My question: can I choose which font to use with lp? Can I use an arbitrary PostScript font? I haven't found the answer to this, even after a lot of searching. It isn't documented anywhere that I've been able to find. Actually, I have no idea how CUPS decides which font to use. It originally used Courier, but after an upgrade, it started using Monospace, and I don't know why; it's all a mystery to me.

Let me know if I should give more information. Thanks in advance...

Last edited by Lux Perpetua (2010-02-13 07:53:42)

Offline

#2 2010-02-12 22:05:13

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: How do I pick the font when printing plain text?[SOLVED: use enscript]

Maybe you could use enscript to convert the file and then print the result?

Offline

#3 2010-02-13 07:52:36

Lux Perpetua
Member
From: The Local Group
Registered: 2009-02-22
Posts: 69

Re: How do I pick the font when printing plain text?[SOLVED: use enscript]

Thanks a million. I installed enscript, and I can indeed print now using seemingly any font. For example,

enscript text.txt -f Inconsolata12 -M Letter --margins :-100:: -B -d pdf

That's an acceptable solution for now.

Offline

Board footer

Powered by FluxBB