[Bug 268668] x11-fonts/fontconfig does not honor lcdfilter setting

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 31 Dec 2022 15:26:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268668

--- Comment #5 from Bertrand Petit <bsdpr@phoe.frmug.org> ---
(In reply to Daniel Engberg from comment #4)
Unfortunately the link you've given is not what I'm looking for: it is not the
default setting that should be changed but the setting that must be editable at
runtime. I braced myself, took a deep breath and had a deeper look at font
config itself and its debugging output.

$ FC_DEBUG=4 ./xftest | grep 'lcdfilter'
Add Rule(kind:0, name: /usr/local/etc/fonts/conf.d/11-lcdfilter-default.conf)
[edit]
        Edit lcdfilter Append lcddefault;
        Edit lcdfilter Assign lcdnone;
        Edit lcdfilter Assign lcddefault;
Add Rule(kind:0, name:
/usr/local/etc/fonts/conf.avail/11-lcdfilter-legacy.conf) [edit]
        Edit lcdfilter Append lcdlegacy;
Add Rule(kind:0, name: /usr/local/etc/fonts/conf.avail/11-lcdfilter-light.conf)
[edit]
        Edit lcdfilter Append lcdlight;
Rule Set: /usr/local/etc/fonts/conf.d/11-lcdfilter-default.conf
Substitute Edit lcdfilter Append lcddefault
        lcdfilter: 1(i)(w)
        lcdfilter: 1(i)(w)
        lcdfilter: 1(i)(w)
        lcdfilter: 1(i)(w)
        lcdfilter: 1(i)(w)
        lcdfilter: 1(i)(w)
        lcdfilter: 1(i)(w)
        lcdfilter: 1(i)(w)
        lcdfilter: 1(i)(w)
Substitute Edit lcdfilter Assign lcdnone
        lcdfilter: 0(i)(w)
        lcdfilter: 0(i)(w)
        lcdfilter: 0(i)(w)
        lcdfilter: 0(i)(w)
        lcdfilter: 0(i)(w)
        lcdfilter: 0(i)(w)
        lcdfilter: 0(i)(w)
        lcdfilter: 0(i)(w)
        lcdfilter: 0(i)(w)
Substitute Edit lcdfilter Assign lcddefault
        lcdfilter: 1(i)(w)
        lcdfilter: 1(i)(w)

The lcdfilter property is correctly set to lcdnone by my fonts,conf file but is
later reset back to lcddefault by another file. From the full debug output it
appears that the faulty file is
/usr/local/etc/fonts/conf.d/90-classiclooks_qt5fontfix.conf which is part of
the classiclooks 2.2.0 port. The weight of that file should had been set to a
number strictly less than 50, another option is to not install that file at
all.

-- 
You are receiving this mail because:
You are the assignee for the bug.