Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 235064 - Add support for subpixel filtering to x11-libs/libXft-2.1.13
Summary: Add support for subpixel filtering to x11-libs/libXft-2.1.13
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-18 01:45 UTC by Ron MacNeil
Modified: 2008-11-04 19:26 UTC (History)
0 users

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


Attachments
Patch to the libXft ebuild (libXft-2.1.13.ebuild.patch,331 bytes, patch)
2008-08-18 01:46 UTC, Ron MacNeil
Details | Diff
Goes in the files/ subdirectory (libXft-2.1.13-lcd-filter-2.patch,21.63 KB, patch)
2008-08-18 01:47 UTC, Ron MacNeil
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ron MacNeil 2008-08-18 01:45:06 UTC
Freetype has (optionally) supported subpixel LCD filtering since v2.3.0, but libXft is still, as of v2.1.13, unable to make use of it.

Attached (minor) changes teach libXft how to use it via an updated version of David Turner's patch.

Significantly improves sub-pixel anti-aliased type on-screen, especially by getting rid of "color fringes".

See:
http://cvs.savannah.gnu.org/viewvc/freetype/freetype2/docs/CHANGES?revision=1.201&view=markup
http://david.freetype.org/lcd/
Comment 1 Ron MacNeil 2008-08-18 01:46:28 UTC
Created attachment 163159 [details, diff]
Patch to the libXft ebuild
Comment 2 Ron MacNeil 2008-08-18 01:47:16 UTC
Created attachment 163161 [details, diff]
Goes in the files/ subdirectory
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2008-08-19 17:45:43 UTC
OK, I did some research on this. Found http://david.freetype.org/cleartype-patents.html -- describes the patent issues with this. Neither cairo nor qt4 use libXft, so this patch wouldn't make much difference if it were applied (according to Fredrik Höglund, KDE/X guy).

I'm not interested in applying patches to our software that aren't applied upstream, so please pursue this at bugs.freedesktop.org in the xorg product if you would like to see it happen.
Comment 4 Ron MacNeil 2008-08-20 02:50:12 UTC
Donnie,

Last paragraph from the URL you referenced:

"And it'd be nice if both the upstream Xft and Cairo could use the newest LCD-specific FreeType APIs. I have even provided patches to do just that a loooong time ago; for some reason, these have never been integrated by the respective library maintainers. I hope some day they'll wake up (though my hope is pretty dim). I suspect that Linux distribution packagers are already applying these patches though..."

This patch does exactly what David is suggesting - in fact, it's his patch.  For whatever reason, they're not making the change upstream in Xft.  I have zero interest in the politics - the fact is that right now many Gentoo users (including all KDE 3.x users) are suffering poor on-screen type rendering and this patch fixes it.

With those users in mind, would the patch be acceptable conditional on an off-by-default use-flag?  Is so, I'm willing to implement it.

Ron
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2008-08-20 18:16:38 UTC
Maybe I was insufficiently clear about the x11 team's patch policy in my last comment. We do not add patches that are not upstream, conditional or not. This has nothing to do with politics and everything to do with patches adding additional maintenance work, conditional ones even more so.

Please pursue this upstream if you want to see it in Gentoo.
Comment 6 Matt Whitlock 2008-11-04 19:26:05 UTC
bi3l, of the Gentoo Forums, is maintaining a Portage overlay with patched versions of Cairo and libXft that utilize FreeType's subpixel filtering.

Here's the overlay:
http://ogmrip.sourceforge.net/misc/gentoo-lcd-filtering.tar.bz2

Here's the forum topic with ongoing discussion:
http://forums.gentoo.org/viewtopic-t-511382.html

I've been using this overlay for many months and have been pleased with the quality of my fonts.