View previous topic :: View next topic |
Author |
Message |
neuron Advocate
Joined: 28 May 2002 Posts: 2371
|
|
Back to top |
|
|
GoofyX Tux's lil' helper
Joined: 23 Feb 2005 Posts: 84 Location: Greece
|
Posted: Thu Jul 03, 2008 4:55 pm Post subject: |
|
|
bi3l, thanks for your great work! Since you host the scripts in sourceforge, isn't there a way to set up a Subversion reporitory there, so we can update easily? I think sf.net gives you svn ability...
Thanks!! _________________ ... Morpheus: What is "real"? How do you define "real"? If you 're talking about what you can feel, what you can smell, what you can taste and see, then "real" is simply electrical signals interpreted by your brain... |
|
Back to top |
|
|
mwhitlock Tux's lil' helper
Joined: 07 Aug 2006 Posts: 87 Location: New Hampshire, USA
|
Posted: Thu Jul 03, 2008 4:59 pm Post subject: |
|
|
GoofyX wrote: | bi3l, thanks for your great work! Since you host the scripts in sourceforge, isn't there a way to set up a Subversion reporitory there, so we can update easily? I think sf.net gives you svn ability... |
If you go with Subversion, you might as well make your overlay accessible with layman. |
|
Back to top |
|
|
GoofyX Tux's lil' helper
Joined: 23 Feb 2005 Posts: 84 Location: Greece
|
Posted: Thu Jul 03, 2008 5:02 pm Post subject: |
|
|
mwhitlock wrote: | If you go with Subversion, you might as well make your overlay accessible with layman. |
Well, yes, that's the next step, but I thought each step at the time. _________________ ... Morpheus: What is "real"? How do you define "real"? If you 're talking about what you can feel, what you can smell, what you can taste and see, then "real" is simply electrical signals interpreted by your brain... |
|
Back to top |
|
|
bi3l Apprentice
Joined: 06 Feb 2003 Posts: 268 Location: France
|
Posted: Thu Jul 03, 2008 5:27 pm Post subject: |
|
|
Sorry, but no, I won't setup an overlay in the subversion repository of this sourceforge project: it's already used for OGMRip. |
|
Back to top |
|
|
GoofyX Tux's lil' helper
Joined: 23 Feb 2005 Posts: 84 Location: Greece
|
Posted: Thu Jul 03, 2008 5:30 pm Post subject: |
|
|
OK, no problem. It's nice to have you backing up these patches! _________________ ... Morpheus: What is "real"? How do you define "real"? If you 're talking about what you can feel, what you can smell, what you can taste and see, then "real" is simply electrical signals interpreted by your brain... |
|
Back to top |
|
|
mwhitlock Tux's lil' helper
Joined: 07 Aug 2006 Posts: 87 Location: New Hampshire, USA
|
Posted: Sat Jul 05, 2008 10:48 am Post subject: libXft 2.1.13 |
|
|
Copying bi3l's libXft-2.1.12.ebuild to libXft-2.1.13.ebuild appears to compile libXft 2.1.13 with the newspr patch just fine. |
|
Back to top |
|
|
Emopig Apprentice
Joined: 15 Mar 2006 Posts: 188
|
Posted: Sun Jul 06, 2008 1:01 pm Post subject: |
|
|
You no longer need to patch Freetype or Fontconfig, only libXft and Cairo.
The LCD configuration options were merged into fontconfig by Keith Packard sometime in the 2.5.9x timeframe (2.5.93 I think).
It is vaguely worth mentioning the Ubuntu patches are somewhat out of date. The latest rework of the LCD filtering patch for Cairo was done by Sylvain Pasche when he posted a patch back in January. Afaik, the Ubuntu patch for Cairo predates this.
The cairo patch for libXft is fine as far as I know but won't compile against latest (now upstream) version (2.1.13) of Fontconfig unless you make a 2 line change replacing instances of FC_LCD_FILTER_* constants with FC_LCD_*.
I have my own versions of these patches, they can be found here. The broken-out folder contains the Cairo patch patch from Sylvain and a 'reject-fix' patch for Cairo 1.6.4, these are just there so others can check the patch if they wish.
My patches are named such that they work with bashrcng's patching module (It is what I use), so you can use the ebuilds already in portage. _________________ 2.6.35 / Gnome 2.30
Athlon64 3500+ / 1.5 GB / Asus A8N VM CSM |
|
Back to top |
|
|
bi3l Apprentice
Joined: 06 Feb 2003 Posts: 268 Location: France
|
Posted: Sun Jul 06, 2008 1:33 pm Post subject: |
|
|
The patches against fontconfig and freetype does not add lcd filtering (as you said, it's already there). They mainly fix things in the code, modify some conf.avail files, add new ones, and change the default ones in conf.d.
Your patches against libXft and cairo and those provided in the tarball are very similar. |
|
Back to top |
|
|
KejPi Tux's lil' helper
Joined: 17 Jan 2004 Posts: 122 Location: Prague, Czech republic
|
Posted: Tue Jul 15, 2008 10:08 am Post subject: |
|
|
Hi, did anyone try to build it using paludis? I am geting some strange warning messages concerning USE flags and used EAPI _________________ hidentity.org |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Tue Jul 15, 2008 12:05 pm Post subject: |
|
|
Emopig wrote: | the Ubuntu patches are somewhat out of date. |
Well, Hardy is "stable", and Intrepid is bleeding-edge/up-to-date/insert-name-here |
|
Back to top |
|
|
semdornus n00b
Joined: 13 Sep 2007 Posts: 58 Location: Tokyo
|
Posted: Wed Jul 16, 2008 12:37 am Post subject: |
|
|
KejPi wrote: | Hi, did anyone try to build it using paludis? I am geting some strange warning messages concerning USE flags and used EAPI |
You have to add EAPI="1" at the top of the two ebuilds that are missing them. The other two have that line, but the ones with the error are missing it. |
|
Back to top |
|
|
Enlight Advocate
Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
Posted: Wed Jul 16, 2008 11:56 am Post subject: |
|
|
Hi there, may anobody post screenshot before and after using this please? |
|
Back to top |
|
|
Aphax Tux's lil' helper
Joined: 16 Jan 2006 Posts: 75
|
Posted: Sat Jul 26, 2008 10:18 am Post subject: |
|
|
Enlight wrote: | Hi there, may anobody post screenshot before and after using this please? |
Here's the difference between no subpixel filtering and subpixel filtering turned on with these patches. It's somewhat subtle but I still think it's an improvement. I'm not sure why but with Ubuntu the text looks slightly 'bolder'.
Turned off: http://www.aphax.nl/images/lcd-off.png
Turned on: http://www.aphax.nl/images/lcd-on.png
The difference between subpixel filtering and normal rendering without these patches is even smaller and doesn't seem to improve anything. |
|
Back to top |
|
|
m.s.w Apprentice
Joined: 19 Sep 2004 Posts: 190 Location: Kraków, Poland
|
Posted: Mon Aug 18, 2008 7:59 pm Post subject: |
|
|
It is strange that not many people talk about this patches and lcdfiltering in g eneral. Fonts are so much better with it. In my case I can't stand fonts without it. And here I have problem. I upgraded to libXft-2.1.13 and I do not know how to compile it with all this patches etc. Can you please tell me how to use this patches in ebuilds? _________________ Mark Twain said it best:
"If you have to swallow a frog, don't stare at it too long!" |
|
Back to top |
|
|
mwhitlock Tux's lil' helper
Joined: 07 Aug 2006 Posts: 87 Location: New Hampshire, USA
|
Posted: Tue Aug 19, 2008 12:24 am Post subject: |
|
|
m.s.w wrote: | It is strange that not many people talk about this patches and lcdfiltering in g eneral. Fonts are so much better with it. In my case I can't stand fonts without it. And here I have problem. I upgraded to libXft-2.1.13 and I do not know how to compile it with all this patches etc. Can you please tell me how to use this patches in ebuilds? |
Most people are using pre-rolled distributions (like Ubuntu) that already have LCD filtering patches applied. That's why nobody talks about this stuff; for the majority of people the fonts already look good.
bi3l's overlay already contains a patched ebuild for libXft-2.1.13. Just extract the tarball into your local overlay, enable the "newspr" USE flag for libXft, and re-emerge libXft.- mkdir -p /usr/portage/local/bi3l
- cd /usr/portage/local/bi3l
- tar -xjf ~/gentoo-lcd-filtering.tar.bz2
- echo 'PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /usr/portage/local/bi3l"' >> /etc/make.conf
- echo 'x11-libs/libXft newspr' >> /etc/portage/package.use
- emerge --oneshot x11-libs/libXft
Edit: Of course, you also need to re-emerge media-libs/freetype and media-libs/fontconfig with the "ubuntu" USE flag enabled. You also probably will want to re-emerge x11-libs/cairo with the "newspr" USE flag enabled. |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Tue Aug 19, 2008 1:13 am Post subject: |
|
|
Aphax wrote: | doesn't seem to improve anything |
You mean the difference between lcddefault and lcdlegacy? Well, the colours are arranged differently. Choose whichever looks better.
Open up the screenshot in e.g. eog and zoom in - notice the colours around the fonts. Right there is the proof. They effectively improve the resolution of fonts on LCD displays, by exploiting the fact that LCD pixels are split into 3 blocks - red, green and blue ("RGB"), in a consistent layout all over the screen. Yes it's subtle, and people with bad eyesight, bad monitors or badly configured software (e.g. wrong DPI settings or RGB in different order) might not be able to see what's right in front of their eyes. Then there's the choice of fonts, the style of LCD rendering ( lcddefault, lcdlight, lcdlegacy) and the huge flexibility possible in /etc/fonts/ and ~/.fonts.conf - here's mine.
mwhitlock wrote: | pre-rolled distributions (like Ubuntu) that already have LCD filtering patches applied. |
Major distros like Fedora and OpenSuSE are still scared of the potential of getting sued. But that's easily fixed [/shameless plug] |
|
Back to top |
|
|
Aphax Tux's lil' helper
Joined: 16 Jan 2006 Posts: 75
|
Posted: Tue Aug 19, 2008 8:00 am Post subject: |
|
|
PaulBredbury wrote: | Aphax wrote: | doesn't seem to improve anything |
You mean the difference between lcddefault and lcdlegacy? Well, the colours are arranged differently. Choose whichever looks better. |
What do you mean by lcddefault and lcdlegacy? In any case I find that my fonts look much better with the patches so that's what I'm using |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Tue Aug 19, 2008 8:15 am Post subject: |
|
|
Read this page and the ones following it, for "lcdlegacy". |
|
Back to top |
|
|
m.s.w Apprentice
Joined: 19 Sep 2004 Posts: 190 Location: Kraków, Poland
|
Posted: Tue Aug 19, 2008 7:58 pm Post subject: |
|
|
mwhitlock wrote: |
bi3l's overlay already contains a patched ebuild for libXft-2.1.13. |
I don't see it. Here http://ogmrip.sourceforge.net/misc/gentoo-lcd-filtering.tar.bz2 we have only 2.1.12 version. _________________ Mark Twain said it best:
"If you have to swallow a frog, don't stare at it too long!" |
|
Back to top |
|
|
mwhitlock Tux's lil' helper
Joined: 07 Aug 2006 Posts: 87 Location: New Hampshire, USA
|
|
Back to top |
|
|
m.s.w Apprentice
Joined: 19 Sep 2004 Posts: 190 Location: Kraków, Poland
|
Posted: Wed Aug 20, 2008 5:37 am Post subject: |
|
|
Yes, I already found this about copying.
It works now (it needed digest though).
I have my fonts back, and I am happy about it. Thank you. _________________ Mark Twain said it best:
"If you have to swallow a frog, don't stare at it too long!" |
|
Back to top |
|
|
mwhitlock Tux's lil' helper
Joined: 07 Aug 2006 Posts: 87 Location: New Hampshire, USA
|
Posted: Fri Aug 22, 2008 9:17 am Post subject: x11-libs/cairo-1.6.4-r1 |
|
|
To make a newspr-enabled ebuild for the newly released x11-libs/cairo-1.6.4-r1:
Code: | emerge --sync
cd /usr/portage/local/bi3l/x11-libs/cairo
cp cairo-1.6.4{,-r1}.ebuild
wget -O- 'http://home.mattwhitlock.com/~mattw/cairo-1.6.4-r1.ebuild.patch' | patch
cp /usr/portage/x11-libs/cairo/files/cairo-1.6.4-libpng-api-change.patch files/
ebuild cairo-1.6.4-r1.ebuild digest
|
|
|
Back to top |
|
|
Phlogiston Veteran
Joined: 27 Jan 2004 Posts: 1925 Location: Europe, Swizerland
|
Posted: Fri Aug 22, 2008 1:44 pm Post subject: Re: x11-libs/cairo-1.6.4-r1 |
|
|
mwhitlock wrote: | To make a newspr-enabled ebuild for the newly released x11-libs/cairo-1.6.4-r1:
Code: | emerge --sync
cd /usr/portage/local/bi3l/x11-libs/cairo
cp cairo-1.6.4{,-r1}.ebuild
wget -O- 'http://home.mattwhitlock.com/~mattw/cairo-1.6.4-r1.ebuild.patch' | patch
cp /usr/portage/x11-libs/cairo/files/cairo-1.6.4-libpng-api-change.patch files/
ebuild cairo-1.6.4-r1.ebuild digest
|
|
Could you please post the resulting ebuild? Does this cairo ebuild have an newspr use flag? I'm confused. /edit: fixed, is there a maintained overlay which contains the ebuilds?
We should start updating the wiki or crate a new entry for this, what do you think?
My problem atm is btw that since some updates the fonts in firefox don't look perfect any longer. _________________ Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor |
|
Back to top |
|
|
mwhitlock Tux's lil' helper
Joined: 07 Aug 2006 Posts: 87 Location: New Hampshire, USA
|
Posted: Fri Aug 22, 2008 2:40 pm Post subject: Re: x11-libs/cairo-1.6.4-r1 |
|
|
Phlogiston wrote: | Could you please post the resulting ebuild? Does this cairo ebuild have an newspr use flag? I'm confused. /edit: fixed, is there a maintained overlay which contains the ebuilds? |
I made my patch against bi3l's ebuild, which you can find in his overlay tarball here: http://ogmrip.sourceforge.net/misc/gentoo-lcd-filtering.tar.bz2
bi3l's ebuild of cairo does have the newspr flag. |
|
Back to top |
|
|
|