Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 27th January 2010, 07:00 PM
RupertPupkin's Avatar
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 4,619
linuxfirefox
How to change default font used by lpr?

Whenever I use lpr on the command-line to print a text file, it uses DejaVu Sans Mono as the font. Is there a way to change this? I'd like to use Terminus as the font instead. I found that CUPS uses Courier as the default font for text files, so somewhere Courier is being aliased to DejaVu Sans Mono, and I have no idea where. Any ideas?
Reply With Quote
  #2  
Old 27th January 2010, 10:11 PM
Dies Offline
Registered User
 
Join Date: Oct 2006
Posts: 4,752
linuxubuntufirefox
Not sure about your actual question, I mean how to get lpr to behave the way you want.

But I do know that you can alias fonts using ~/.fonts.conf

For example

Code:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>


<alias>
	<family>monospace</family>
	<prefer>
		<family>DejaVu Sans Mono</family>
	</prefer>
</alias>

<alias>
	<family>sans-serif</family>
	<prefer>
		<family>DejaVu Sans Mono</family>
	</prefer>
</alias>

<alias>
	<family>serif</family>
	<prefer>
		<family>DejaVu Sans Mono</family>
	</prefer>
</alias>

</fontconfig>
Should make it so most things use "DejaVu Sans Mono".

More info at http://www.fontconfig.org/fontconfig-user.html
Reply With Quote
  #3  
Old 29th January 2010, 04:05 AM
RupertPupkin's Avatar
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 4,619
linuxfirefox
Those aliases in ~/.fonts.conf only work for Xft-enabled apps, not for printing from the command-line (I tried it).
Reply With Quote
Reply

Tags
change, default, font, lpr

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
change default console font c2h5oh Using Fedora 2 25th September 2009 01:07 PM
How to change default GDM font? gesser Using Fedora 3 23rd July 2009 11:11 AM
Unable to change default font aliases Belegdol Using Fedora 0 15th October 2006 11:46 PM
Change default Asian font family tsangcn Using Fedora 0 30th May 2006 12:18 PM


Current GMT-time: 02:32 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat