Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9594 - XFT not using sub pixel rendering (anti aliasing instead)
Summary: XFT not using sub pixel rendering (anti aliasing instead)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-24 02:28 UTC by Daniel Lyons
Modified: 2002-10-24 14:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Lyons 2002-10-24 02:28:04 UTC
Hi, 
 
I just noticed a few minutes ago that an important XFT customization I'm using 
is not working anymore.  I have "match edit rgba = rgb;" at the end of my 
/etc/X11/XftConfig so that my LCD panel uses sub-pixel rendering rather than 
normal anti-aliasing.  This worked fine up until now, but suddenly it's doing 
regular anti-aliasing rather than sub-pixel rendering. 
 
I went through all of the files I could find that were named XftConfig 
appending this to the bottom, restarted X a few times, and it's still not 
working.  I just edited the version in the files directory of the ebuild and 
I'm trying the ebuild again.  I remember a new ebuild for X came out recently 
and I'm betting it didn't happen until then. 
 
I also noticed there's several patches for this version of X which might apply 
to this problem, but I really don't know enough to examine them. 
 
Thanks for your help; it means a lot to me to not lose my eyes on my screen!  
:) 
 
Daniel
Comment 1 José Fonseca 2002-10-24 12:31:36 UTC
I think this is related with the Xft2 and the new fontconfig. Here is the
contents of the /etc/X11/XftConfig.README-OBSOLETE included in RedHat 8.0:

# IMPORTANT NOTICE about XftConfig:
#
# The XftConfig config file has been deprecated and obsoleted by
# /etc/fonts/fonts.conf, which is the new font configuration file for Xft2, and
# is provided by "fontconfig".  A backward compatible Xft1 library is also
# provided which has been converted to use fontconfig also and provide users
# with a single way of configuring client side fonts, while retaining binary
# compatibility. For information on configuring fonts using fontconfig,
# please consult the fontconfig documentation.

So replacing in /etc/fonts/fonts.cfg

<!--
  Enable sub-pixel rendering
        <match target="font">
                <edit name="rgba" mode="assign"><const>rgb</const></edit>
        </match>
-->

by

<!--
  Enable sub-pixel rendering
-->
        <match target="font">
                <edit name="rgba" mode="assign"><const>rgb</const></edit>
        </match>

Should do the trick.
Comment 2 Daniel Lyons 2002-10-24 14:12:04 UTC
Using the /etc/fonts/fonts.conf and making the suggested change worked.  :) 
 
Thanks for the fast response!