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:   [Bug 268668] x11-fonts/fontconfig does not honor lcdfilter setting
Message-ID:  <bug-268668-39348@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268668

            Bug ID: 268668
           Summary: x11-fonts/fontconfig does not honor lcdfilter setting
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: desktop@FreeBSD.org
          Reporter: bsdpr@phoe.frmug.org
          Assignee: desktop@FreeBSD.org
             Flags: maintainer-feedback?(desktop@FreeBSD.org)

Created attachment 239148
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D239148&action=
=3Dedit
Screenshot of the test program runing on the affected host

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.

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



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