You are not logged in.

#1 2020-12-17 17:40:49

fred6633
Member
Registered: 2020-12-17
Posts: 4

Font config precedence question

Hello,

Arn't rules in  $XDG_CONFIG_HOME/fontconfig/conf.d supposed to override rules in $XDG_CONFIG_HOME/fontconfig/fonts.conf?

In my configuration they do not.

Thanks

Fred

Offline

#2 2020-12-17 20:52:54

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,023

Re: Font config precedence question

Where do you get that idea? See

man 5 fonts-conf

Offline

#3 2020-12-18 08:59:45

fred6633
Member
Registered: 2020-12-17
Posts: 4

Re: Font config precedence question

Thanks,

Yes I see I got it all wrong.

I read https://www.freedesktop.org/software/sy … .conf.html

"The main configuration file is read before any of the configuration directories, and has the lowest precedence; entries in a file in any configuration directory override entries in the single configuration file."

I thought it was a general rule that files in conf.d directories had higher priority than main .conf files.

It seems that there is ho other way than to edit fonts.conf

Fred

Offline

#4 2020-12-18 11:35:38

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: Font config precedence question

There's a file "/etc/fonts/conf.d/50-user.conf" with this content here:

...
        <include ignore_missing="yes" prefix="xdg">fontconfig/conf.d</include>
        <include ignore_missing="yes" prefix="xdg">fontconfig/fonts.conf</include>
...

That's where the precedence comes from.

Offline

#5 2020-12-18 14:50:40

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,023

Re: Font config precedence question

It seems that there is ho other way than to edit fonts.conf

This seems an xy-problem, why do you have a fonts.conf itfp (instead of configuring everything from conf.d/stuff.conf)?

Offline

#6 2020-12-18 21:33:53

fred6633
Member
Registered: 2020-12-17
Posts: 4

Re: Font config precedence question

Hello Seth,
 
It is the graphical interface in LXQT that writes its fonts config settings to ~/.config/fontconfig/fonts.conf. The file says "don't edit".

I set rgba to none in the graphical interface (Configuration center/Appearance/fonts. rgba got changed to none in fonts.conf, but lcdfiler is defaulted to "lcddefault". But you don't wany a lcdfilter when rgba is set to none. Therefore I tried to find a way to set lcdfilter to "lcdnone" without editing fonts.conf.

It loooks lika a bug in LXQT. If you set rgba to none, fonts.conf should also set lcdfilter to "lcdnone"

So that is my problem: How do I override "lcdfilter:lcddefault" in fonts.conf without editing fonts.conf?

Fred

Offline

#7 2020-12-18 22:48:01

fred6633
Member
Registered: 2020-12-17
Posts: 4

Re: Font config precedence question

Hello,

I solved it by disabling ~/.config/fontconfig/fonts.conf. I created a new 50-xxx.conf in /etc/fonts/conf.d., witch do not include ~/.config/fontconfig/fonts.conf.

Fred

Offline

Board footer

Powered by FluxBB