Fedora Linux Support Community & Resources Center
  #1  
Old 15th February 2008, 11:07 AM
mrmailer Offline
Registered User
 
Join Date: Dec 2005
Posts: 122
font.conf - how to make multiple families have one preferred font?

Surely there is an easier way to do this...., honestly I wouldn't mind using a *...


<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>Sans</family>
<prefer>
<family>almateen</family>
</prefer>
</alias>
<alias>
<family>Comic Sans MS</family>
<prefer>
<family>almateen</family>
</prefer>
</alias>
<alias>
<family>Trebuchet MS</family>
<prefer>
<family>almateen</family>
</prefer>
</alias>
<alias>
<family>Serif</family>
<prefer>
<family>almateen</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>almateen</family>
</prefer>
</alias>
<alias>
<family>Courier</family>
<prefer>
<family>almateen</family>
</prefer>
</alias>
</fontconfig>
Reply With Quote
  #2  
Old 1st September 2010, 12:37 PM
rsdevgun Offline
Registered User
 
Join Date: Aug 2010
Posts: 5
windows_xp_2003ie
Re: font.conf - how to make multiple families have one preferred font?

Try this as I had similar requirements

<fontconfig>
<alias binding="strong">
<family>sans</family>
<family>serif</family>
<family>mono</family>
<prefer>
<family>FAMILY_YOU_WANT_HERE</family>
</prefer>
</alias>
</fontconfig>
Reply With Quote
  #3  
Old 7th May 2011, 05:19 PM
syockit Offline
Registered User
 
Join Date: Jan 2009
Location: Osaka, Japan
Posts: 1
linuxfirefox
Re: font.conf - how to make multiple families have one preferred font?

It doesn't work for all families defined. Example, I had this:
Code:
<alias binding="strong">
	<family>Arial</family>
	<family>Helvetica</family>
	<family>Sans-Serif</family>
	<prefer>
		<family>URW Gothic L</family>
		<family>IPAPGothic</family>
	</prefer>
</alias>
then Helvetica won't follow the rule (aliased to Nimbus Sans, as per original system settings). If I swapped the order of Helvetica and Arial, then Arial won't follow (aliased to Liberation Sans).
Reply With Quote
Reply

Tags
families, font, fontconf, make, multiple, preferred

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


Current GMT-time: 09:28 (Thursday, 27-11-2014)

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
Moda-Kadikoy Photos on Instagram - Casa Mundo Travel Photos