LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-18-2009, 09:48 AM   #1
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
~/.fonts.conf does not work?


I'm running current so the fontconfig is 2.6.0. I have this section in ~/.fonts.conf:

Code:
        <alias>
                <family>grissiom</family>
                <prefer><family>Liberation Mono</family></prefer>
                <default><family>WenQuanYi Zen Hei Mono</family></default>
        </alias>
but fc-match tell me:
Code:
% fc-match "grissiom"
simsun.ttc: "SimSun" "Regular"
Simsun is an other font I have installed. Why it doesn't show "Liberation Mono" or "WenQuanYi Zen Hei Mono"?
 
Old 07-18-2009, 01:34 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Your rule might have been overridden by one that Fontconfig loaded earlier.

Try putting the rule in a file starts with a lower number. Say, /etc/fonts/conf.d/35-grissiom.conf.
 
Old 07-18-2009, 07:09 PM   #3
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Original Poster
Rep: Reputation: 45
Thanks! I will consider your advise. But I just want a user-wide configuration not a system-wide configuration. And don't need root privilege. How could I achieve that?
 
Old 07-18-2009, 07:56 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
You can rename /etc/fonts/conf.d/*-user.conf to something that starts with a lower number. Say, /etc/fonts/conf.d/35-user.conf. Then Fontconfig will give a higher priority to your .fonts.conf file.

Last edited by dugan; 07-18-2009 at 08:04 PM.
 
  


Reply



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
Wrong setting the /etc/fonts/fonts.conf Mathsniper Debian 2 06-24-2006 06:40 PM
X11 conf and fonts questions neilcpp Slackware 3 11-07-2005 01:13 PM
/etc/fonts/local.conf J_dash Linux - Newbie 1 10-08-2005 07:45 AM
Question about fonts.conf configuration ICO Linux - General 5 01-12-2004 07:32 PM
Error: /etc/fonts/fonts.conf file? BearClaw Slackware 2 09-10-2003 02:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:36 PM.

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
Open Source Consulting | Domain Registration