Bug 2212512

Summary: fontconfig package installs 10-sub-pixel-rgb-for-kde.conf by default in /etc/fonts/conf.d
Product: [Fedora] Fedora Reporter: Anthony DeDominic <anthony>
Component: fontconfigAssignee: Akira TAGOH <tagoh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 38CC: ajax, fonts-bugs, gnome-sig, i18n-bugs, mclasen, pnemade, rstrode, tagoh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: fontconfig-2.14.2-3.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-16 09:27:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Anthony DeDominic 2023-06-05 18:48:43 UTC
/etc/fonts/conf.d/10-sub-pixel-rgb-for-kde.conf seems to be included with the fontconfig package. It doesn't appear to be in /usr/share/conf.avail, where I would expect and symlinked into conf.d.
ontop of that, it causes font rasterizing problems in some applications such as GTK applications on KDE where the display is not using an rbg subpixel geometry.

Users should add this to their local fontconfig and probably shouldn't be the default.

Reproducible: Always

Steps to Reproduce:
1. Use the KDE desktop
2. Launch evolution and attempt to read email
Actual Results:  
Text has extreme rainbow fringing

Expected Results:  
for rgb subpixel rendering to be disabled.

I already have an existing $XDG_CONFIG_HOME/fontconfig/ and it looks like KDE's settings application fiddles with it, which may explain why I experienced this issue specifically, despite turning it off there. Either way, the way this file is installed seems wrong to me given most files in this directory are symlinked.

the, workaround/potential fix, is trivial, simply delete the file from conf.d and the problem appears to go away.

Also:
 * I have an existing installation of GNOME and installed kde using @kde-desktop group.
 * # dnf whatprovides /etc/fonts/conf.d/10-sub-pix
el-rgb-for-kde.conf
Last metadata expiration check: 1:06:37 ago on Mon 05 Jun 2023 01:39:47 PM EDT.
fontconfig-2.14.2-1.fc38.i686 : Font configuration and
                              : customization library
Repo        : @System
Matched from:
Filename    : /etc/fonts/conf.d/10-sub-pixel-rgb-for-kde.conf

fontconfig-2.14.2-1.fc38.i686 : Font configuration and
                              : customization library
Repo        : fedora
Matched from:
Filename    : /etc/fonts/conf.d/10-sub-pixel-rgb-for-kde.conf

fontconfig-2.14.2-1.fc38.x86_64 : Font configuration and
                                : customization library
Repo        : @System
Matched from:
Filename    : /etc/fonts/conf.d/10-sub-pixel-rgb-for-kde.conf

fontconfig-2.14.2-1.fc38.x86_64 : Font configuration and
                                : customization library
Repo        : fedora
Matched from:
Filename    : /etc/fonts/conf.d/10-sub-pixel-rgb-for-kde.conf

Comment 1 Fedora Update System 2023-06-16 09:25:52 UTC
FEDORA-2023-f38bf244f5 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-f38bf244f5

Comment 2 Fedora Update System 2023-06-16 09:27:04 UTC
FEDORA-2023-f38bf244f5 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.