I suggest that the best fix is to modify the system fontconfig settings, so that they become defaults rather than always overriding settings already present in the pattern.
This would include changing 10-no-sub-pixel.conf from
<match target="font"> <edit name="rgba" mode="assign"><const>none</const></edit> </match>
to
<match target="font"> <test name="rgba" qual="all"><const>unknown</const></test> <edit name="rgba" mode="assign"><const>none</const></edit> </match>
and changing 10-hinting-medium.conf from
<match target="font"> <edit name="hintstyle" mode="assign"><const>hintmedium</const></edit> </match>
to something like
<match target="font"> <test name="hintstyle" qual="all"><int>-1</int></test> <edit name="hintstyle" mode="assign"><const>hintmedium</const></edit> </match>
There are other files that should also be changed similarly.
Further discussion at https://bugzilla.mozilla.org/show_bug.cgi?id=458612#c21
I suggest that the best fix is to modify the system fontconfig settings, so
that they become defaults rather than always overriding settings already
present in the pattern.
This would include changing 10-no-sub- pixel.conf from
<match target="font"> ><const> none</const> </edit>
<edit name="rgba" mode="assign"
</match>
to
<match target="font"> ><const> unknown< /const> </test> ><const> none</const> </edit>
<test name="rgba" qual="all"
<edit name="rgba" mode="assign"
</match>
and changing 10-hinting- medium. conf from
<match target="font"> ><const> hintmedium< /const> </edit>
<edit name="hintstyle" mode="assign"
</match>
to something like
<match target="font"> ><int>- 1</int> </test> ><const> hintmedium< /const> </edit>
<test name="hintstyle" qual="all"
<edit name="hintstyle" mode="assign"
</match>
There are other files that should also be changed similarly.
Further discussion at /bugzilla. mozilla. org/show_ bug.cgi? id=458612# c21
https:/