Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145460 - Patches for cairo to enable better subpixel rendering on lcd screens
Summary: Patches for cairo to enable better subpixel rendering on lcd screens
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-29 03:40 UTC by Łukasz Mierzwa
Modified: 2007-04-13 23:30 UTC (History)
5 users (show)

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


Attachments
patch for cairo 1.2.* (0001-freetype-Add-fir-filter-for-subpixel-text-rendering-enabled-by-default.diff,7.28 KB, patch)
2006-08-29 03:41 UTC, Łukasz Mierzwa
Details | Diff
patch for libXft-2.1.10 (libXft-2.1.10-lcd-cleartype.diff,22.33 KB, patch)
2006-08-29 03:42 UTC, Łukasz Mierzwa
Details | Diff
modified cairo 1.2.4 ebuild with bindist use flag (cairo-1.2.4.ebuild,1.95 KB, text/plain)
2006-08-29 03:49 UTC, Łukasz Mierzwa
Details
modified libXft 2.1.10 ebuild with bindist use flag (libXft-2.1.10.ebuild,855 bytes, text/plain)
2006-08-29 03:50 UTC, Łukasz Mierzwa
Details
I uploaded wrong ebuild, this one is the right one for 1.2.4 cairo (cairo-1.2.4.ebuild,1.97 KB, text/plain)
2006-08-29 04:02 UTC, Łukasz Mierzwa
Details
I uploaded wrong ebuild, this one is the right one for 2.1.10 libXft (libXft-2.1.10.ebuild,893 bytes, text/plain)
2006-08-29 04:03 UTC, Łukasz Mierzwa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Łukasz Mierzwa 2006-08-29 03:40:55 UTC
Here are patches that provides much better subpixel rendering of fonts on lcd displays, found on ubuntu forums, tested on x86 box
http://www.ubuntuforums.org/showthread.php?t=180647&page=10
http://www.ubuntuforums.org/showthread.php?t=235526

They can possilby break some patents so we should enable them only if bindist USE flag is not set.
Comment 1 Łukasz Mierzwa 2006-08-29 03:41:57 UTC
Created attachment 95354 [details, diff]
patch for cairo 1.2.*
Comment 2 Łukasz Mierzwa 2006-08-29 03:42:34 UTC
Created attachment 95355 [details, diff]
patch for libXft-2.1.10
Comment 3 Łukasz Mierzwa 2006-08-29 03:49:46 UTC
Created attachment 95356 [details]
modified cairo 1.2.4 ebuild with bindist use flag
Comment 4 Łukasz Mierzwa 2006-08-29 03:50:24 UTC
Created attachment 95357 [details]
modified libXft 2.1.10 ebuild with bindist use flag
Comment 5 Łukasz Mierzwa 2006-08-29 04:02:29 UTC
Created attachment 95359 [details]
I uploaded wrong ebuild, this one is the right one for 1.2.4 cairo
Comment 6 Łukasz Mierzwa 2006-08-29 04:03:07 UTC
Created attachment 95360 [details]
I uploaded wrong ebuild, this one is the right one for 2.1.10 libXft
Comment 7 Paul Bredbury 2006-08-29 06:45:14 UTC
I confirm that fonts are improved.

The cairo patch needs its email headers removed - it works if its first line is "index..."
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-08-29 07:30:45 UTC
Ugh, these are huge patches. Please, submit such stuff upstream.
Comment 9 Pacho Ramos gentoo-dev 2006-11-04 05:06:17 UTC
Seems that is not needed use this patches in cairo-1.2.6:
http://blog.cardoe.com/archives/2006/11/02/cairo-126/
Comment 10 Doug Goldstein (RETIRED) gentoo-dev 2007-04-13 23:30:58 UTC
This stuff has been moved into FreeType 2.3.0. It is better known as Microsoft ClearType and it clearly infringes on Microsoft patents, which people claim to have prior art for but unless you're willing to fight Microsoft in the courts... it's better to keep them disabled if you distribute binary packages.

The original author of these patches agreed that it was better to implement them in freetype, where they belong so that's where they are.

As a default, Gentoo's freetype does ship with this disabled. You simply need to create the following symlinks..

$ ls -l /etc/fonts/conf.d/10-autohint.conf 
lrwxrwxrwx 1 root root 30 Feb  7 01:34 /etc/fonts/conf.d/10-autohint.conf -> ../conf.avail/10-autohint.conf
$ ls -l /etc/fonts/conf.d/10-sub-pixel-rgb.conf 
lrwxrwxrwx 1 root root 35 Feb  7 01:34 /etc/fonts/conf.d/10-sub-pixel-rgb.conf -> ../conf.avail/10-sub-pixel-rgb.conf

And you're set.