LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   ~/.fonts.conf does not work? (https://www.linuxquestions.org/questions/slackware-14/%7E-fonts-conf-does-not-work-741015/)

grissiom 07-18-2009 09:48 AM

~/.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"?

dugan 07-18-2009 01:34 PM

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.

grissiom 07-18-2009 07:09 PM

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?

dugan 07-18-2009 07:56 PM

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.


All times are GMT -5. The time now is 02:21 AM.