You are not logged in.
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
Maybe you could use enscript to convert the file and then print the result?
Offline
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