Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HOWTO]New freetype subpixel font rendering for lcd monitors
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 23, 24, 25 ... 28, 29, 30  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
neuron
Advocate
Advocate


Joined: 28 May 2002
Posts: 2371

PostPosted: Thu Jul 03, 2008 4:51 pm    Post subject: Reply with quote

grahamm wrote:
Do you know when this page will be on-line again?


use http://ogmrip.sourceforge.net/misc/gentoo-lcd-filtering.tar.bz2 it works perfectly :)

And thanks a lot bi3l! Looks very nice :)
Back to top
View user's profile Send private message
GoofyX
n00b
n00b


Joined: 23 Feb 2005
Posts: 51
Location: Thessaloniki, Greece

PostPosted: Thu Jul 03, 2008 4:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
mwhitlock
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2006
Posts: 75
Location: Weare, NH

PostPosted: Thu Jul 03, 2008 4:59 pm    Post subject: Reply with quote

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. :P
Back to top
View user's profile Send private message
GoofyX
n00b
n00b


Joined: 23 Feb 2005
Posts: 51
Location: Thessaloniki, Greece

PostPosted: Thu Jul 03, 2008 5:02 pm    Post subject: Reply with quote

mwhitlock wrote:
If you go with Subversion, you might as well make your overlay accessible with layman. :P


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
View user's profile Send private message
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Thu Jul 03, 2008 5:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
GoofyX
n00b
n00b


Joined: 23 Feb 2005
Posts: 51
Location: Thessaloniki, Greece

PostPosted: Thu Jul 03, 2008 5:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
mwhitlock
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2006
Posts: 75
Location: Weare, NH

PostPosted: Sat Jul 05, 2008 10:48 am    Post subject: libXft 2.1.13 Reply with quote

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
View user's profile Send private message
Emopig
Apprentice
Apprentice


Joined: 15 Mar 2006
Posts: 188

PostPosted: Sun Jul 06, 2008 1:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Sun Jul 06, 2008 1:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
KejPi
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2004
Posts: 122
Location: Prague, Czech republic

PostPosted: Tue Jul 15, 2008 10:08 am    Post subject: Reply with quote

neuron wrote:
grahamm wrote:
Do you know when this page will be on-line again?


use http://ogmrip.sourceforge.net/misc/gentoo-lcd-filtering.tar.bz2 it works perfectly :)

And thanks a lot bi3l! Looks very nice :)


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
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Tue Jul 15, 2008 12:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
semdornus
n00b
n00b


Joined: 13 Sep 2007
Posts: 58
Location: Tokyo

PostPosted: Wed Jul 16, 2008 12:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Enlight
Advocate
Advocate


Joined: 28 Oct 2004
Posts: 3517
Location: Alsace (France)

PostPosted: Wed Jul 16, 2008 11:56 am    Post subject: Reply with quote

Hi there, may anobody post screenshot before and after using this please?
_________________
le "lol" est aux boulets ce que le ";" est au programmeurs
Back to top
View user's profile Send private message
Aphax
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2006
Posts: 75

PostPosted: Sat Jul 26, 2008 10:18 am    Post subject: Reply with quote

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
View user's profile Send private message
m.s.w
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 167
Location: Kraków, Poland

PostPosted: Mon Aug 18, 2008 7:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
mwhitlock
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2006
Posts: 75
Location: Weare, NH

PostPosted: Tue Aug 19, 2008 12:24 am    Post subject: Reply with quote

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.
  1. mkdir -p /usr/portage/local/bi3l
  2. cd /usr/portage/local/bi3l
  3. tar -xjf ~/gentoo-lcd-filtering.tar.bz2
  4. echo 'PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /usr/portage/local/bi3l"' >> /etc/make.conf
  5. echo 'x11-libs/libXft newspr' >> /etc/portage/package.use
  6. 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
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Tue Aug 19, 2008 1:13 am    Post subject: Reply with quote

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
View user's profile Send private message
Aphax
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2006
Posts: 75

PostPosted: Tue Aug 19, 2008 8:00 am    Post subject: Reply with quote

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
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Tue Aug 19, 2008 8:15 am    Post subject: Reply with quote

Read this page and the ones following it, for "lcdlegacy".
Back to top
View user's profile Send private message
m.s.w
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 167
Location: Kraków, Poland

PostPosted: Tue Aug 19, 2008 7:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
mwhitlock
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2006
Posts: 75
Location: Weare, NH

PostPosted: Wed Aug 20, 2008 5:19 am    Post subject: Reply with quote

m.s.w wrote:
I don't see it. Here http://ogmrip.sourceforge.net/misc/gentoo-lcd-filtering.tar.bz2 we have only 2.1.12 version.

My apologies, I had copied 2.1.12 to make 2.1.13. No changes required.
See my post about this earlier in this thread:
https://forums.gentoo.org/viewtopic-p-5142194.html#5142194
Back to top
View user's profile Send private message
m.s.w
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 167
Location: Kraków, Poland

PostPosted: Wed Aug 20, 2008 5:37 am    Post subject: Reply with quote

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
View user's profile Send private message
mwhitlock
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2006
Posts: 75
Location: Weare, NH

PostPosted: Fri Aug 22, 2008 9:17 am    Post subject: x11-libs/cairo-1.6.4-r1 Reply with quote

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
View user's profile Send private message
Phlogiston
Veteran
Veteran


Joined: 27 Jan 2004
Posts: 1925
Location: Europe, Swizerland

PostPosted: Fri Aug 22, 2008 1:44 pm    Post subject: Re: x11-libs/cairo-1.6.4-r1 Reply with quote

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
View user's profile Send private message
mwhitlock
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2006
Posts: 75
Location: Weare, NH

PostPosted: Fri Aug 22, 2008 2:40 pm    Post subject: Re: x11-libs/cairo-1.6.4-r1 Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3 ... 23, 24, 25 ... 28, 29, 30  Next
Page 24 of 30

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum