LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-16-2007, 08:43 AM   #1
sirius56
Member
 
Registered: Nov 2006
Location: Illinois
Distribution: Ubuntu 10.4
Posts: 35

Rep: Reputation: 15
Default fonts for lpr


If I do an "lpr textfilename" command, I print textfilename to my printer.

Where can I change the default font and font size for that command?

Thank you.
 
Old 02-16-2007, 09:08 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Here's all I can find with a quick look..

In the file /etc/cups/cupsd.conf, the default font path can be selected. If nothing is selected it appears to default to /usr/share/cups/fonts. On my system, this contains only courier and symbol. It appears to in fact print in courier.

I found nothing that would change the size, but I have not finished digging.

All this is found on the cups setup page---type "localhost:631" in a browser.
 
Old 02-20-2007, 09:16 PM   #3
sirius56
Member
 
Registered: Nov 2006
Location: Illinois
Distribution: Ubuntu 10.4
Posts: 35

Original Poster
Rep: Reputation: 15
pixellany, I'm sorry, but I can't find any reference to fonts in my
/usr/share/cups/fonts
So the fonts information must be picked up somewhere else.

Everything in Linux seems to be controlled by tables. This one has been very difficult to find.

Any further help would be appreciated.
 
Old 02-20-2007, 09:27 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Did you find this file?:
/etc/cups/cupsd.conf

What did it show for the font path?
 
Old 03-03-2007, 04:47 PM   #5
sirius56
Member
 
Registered: Nov 2006
Location: Illinois
Distribution: Ubuntu 10.4
Posts: 35

Original Poster
Rep: Reputation: 15
pixellany, The only reference to fonts in /etc/cups/cupsd.conf was a reference to a file named

/usr/share/cups/fonts

In that file were the names of a few fonts such as Courier.

When I looked at Courier, it was a long hex-like dump of data--no evident mention of font size.

I appreciate your interest in my question on default fonts. It is so basic, yet nobody seems to have an answer. Please let me know if you have any further thoughts.

Thank you.
 
Old 03-04-2007, 01:57 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
You won't find font size in the font file.

I just played a bit with the lp command and it appears that you change font size using the lpi and cpi parameters. Take a look at man lp for details
 
Old 03-05-2007, 04:49 PM   #7
sirius56
Member
 
Registered: Nov 2006
Location: Illinois
Distribution: Ubuntu 10.4
Posts: 35

Original Poster
Rep: Reputation: 15
pixellany, Thank you. That's exactly what I was looking for. lp led me to lpoptions which seems the way to set defaults. I will experiment with that and get back to you.

Thanks again, it took me a long time to get printing under control.
 
Old 03-05-2007, 07:18 PM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
I'm not even going to ask why you want to print from the CLI..... (Or maybe I'll learn that I wnat to also...)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what is the different between lp, lpr, llpr, lpr.cups... lnthai2002 Linux - Software 5 04-13-2006 05:09 PM
How to choose default fonts? ChangWufei Debian 1 10-25-2005 09:34 PM
default fonts in QT3 (?) VertX Linux - Newbie 0 02-04-2005 11:02 AM
confused... lpr/ lpr-cups shadow.blue Linux - Software 1 04-06-2004 06:15 PM
lpr & lpr-cups commands not working with CUPS trinbellwoods Debian 2 01-08-2004 09:25 AM


All times are GMT -5. The time now is 10:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration