Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Dec 2022 11:26:13 +0000
From:      bugzilla-noreply@freebsd.org
To:        desktop@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 268668] x11-fonts/fontconfig does not honor lcdfilter setting
Message-ID:  <bug-268668-39348-znmJwU4XZ7@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-268668-39348@https.bugs.freebsd.org/bugzilla/>
References:  <bug-268668-39348@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-desktop (Team)
<desktop@FreeBSD.org> for maintainer-feedback:
Bug 268668: x11-fonts/fontconfig does not honor lcdfilter setting
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268668



--- Description ---
I recently did a full system upgrade that brought fontconfig 2.14.0 in, sin=
ce
then I observed that my reading ability is impeded. I rooted this to fontco=
nfig
which no longer honor lcdfilter settings in fonts.conf. I can't remember wh=
en I
disabled LCD filtering to improve text display, for maybe ten years I have =
the
followinf lines in ~/.config/fontconfig/fonts.conf file:

    <!--  Disable sub-pixel rendering but we still use antialias -->
    <match target=3D"font">
	<edit mode=3D"assign" name=3D"rgba">
	    <const>none</const>
	</edit>
	<edit mode=3D"assign" name=3D"lcdfilter">
	  <const>lcdnone</const>
	</edit>
	<edit mode=3D"assign" name=3D"antialias">
	    <bool>true</bool>
	</edit>
    </match>
    <!-- Enable hinting when provided by the font -->
    <match target=3D"font">
	<edit mode=3D"assign" name=3D"hinting">
	    <bool>true</bool>
	</edit>
	<edit mode=3D"assign" name=3D"hintstyle">
	    <const>hintfull</const>
	</edit>
	<edit mode=3D"assign" name=3D"autohint">
	    <bool>true</bool>
	</edit>
    </match>

I initially thought this might be caused by toolkits forcing lcdfilering on=
 so
I wrote a small test program using only xlib and xft. Despite the settings
shown above, even using this basic display interface the characters rendered
through xft are lcdfiltered and came to the conclusion that the culprit is
either fontconfig or xft (the former is more probable).

To support my claim, I join the test program and two screenshots, made on t=
he
same display server, of two instances of the same test client running on two
different hosts. Please note that the unaffected host is remote.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268668-39348-znmJwU4XZ7>