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 ... 24, 25, 26 ... 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
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Sun Aug 24, 2008 8:39 am    Post subject: Reply with quote

I've just updated the tarball with ebuilds for cairo-1.6.4-r1 and libXft-2.1.13.
Back to top
View user's profile Send private message
neuron
Advocate
Advocate


Joined: 28 May 2002
Posts: 2371

PostPosted: Sun Aug 24, 2008 8:51 am    Post subject: Reply with quote

bi3l wrote:
I've just updated the tarball with ebuilds for cairo-1.6.4-r1 and libXft-2.1.13.


much appreciated :)
Back to top
View user's profile Send private message
Mr. Tao
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2007
Posts: 147

PostPosted: Sun Aug 24, 2008 8:43 pm    Post subject: Reply with quote

I’m glad I found this topic as I’ve used soor overlay which is not updated for a while. I’m going to test these patches right now. Meanwhile I’ve made repo definition for paludis:
/etc/paludis/lcd-filtering.conf wrote:
location = ${ROOT}/usr/portage/local/lcd-filtering
sync = tar+http://ogmrip.sourceforge.net/misc/gentoo-lcd-filtering.tar.bz2
sync_options = "--rsync-option=--exclude=profiles"
master_repository = gentoo
format = ebuild
names_cache = /var/cache/paludis/names
write_cache = /var/cache/paludis/metadata


Last edited by Mr. Tao on Sun Aug 24, 2008 9:47 pm; edited 2 times in total
Back to top
View user's profile Send private message
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Sun Aug 24, 2008 9:41 pm    Post subject: Reply with quote

Mr. Tao wrote:
I’m glad I found this topic as I’ve used soor overlay which is not updated for a while. I’m going to test these patches right now. Meanwhile I’ve made repo definition for paludis

Very good idea, thanks !!!! And I've just discovered that it's possible to do the same with layman !!!!

Here is the definition:
Code:
<?xml version="1.0" ?>
<layman>
  <overlays>
    <overlay type="tar" src="http://ogmrip.sourceforge.net/misc/gentoo-lcd-filtering.tar.bz2" contact="billl@users.sourceforge.net" name="lcd-filtering">
      <link>http://forums.gentoo.org/viewforum-f-12.html</link>
      <description>LCD filtering</description>
    </overlay>
  </overlays>
</layman>


Put it in /etc/layman/lcd-filtering.xml and add the definition in /etc/layman/layman.cfg:
Code:
overlays  : http://www.gentoo.org/proj/en/overlays/layman-global.txt
            file:///etc/layman/lcd-filtering.xml


Finally, run:
Code:
layman -a lcd-filtering.
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Sun Aug 24, 2008 10:06 pm    Post subject: Reply with quote

Thanks for the work. It is nice to see someone has stepped up and taken over supporting these patches.

If you are going to the trouble of setting it up for use with layman, you might want to make sure that your ebuilds for packages that are marked stable in portage, are also marked stable instead of keyword masked.
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Sun Aug 24, 2008 10:32 pm    Post subject: Reply with quote

Hmmm. Just tried it out and it doesn't seem like fontconfig-2.5.0-r1 is actually getting patched properly. The USE flags look correct and it compiled fine, but when portage ran the updates after emerge finished, it complained about "lcddefault" not being a valid fontconfig option... Then the cairo-1.6.4 ebuild failed complaining about LCD_* options not being defined, which leads me back to thinking that fontconfig isn't right.

I want to do some more investigating before I submit a proper error report. (one that actually has exact error messages instead of the crap I just listed. ;))
Back to top
View user's profile Send private message
mwhitlock
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2006
Posts: 87
Location: New Hampshire, USA

PostPosted: Sun Aug 24, 2008 10:53 pm    Post subject: Reply with quote

yabbadabbadont wrote:
Hmmm. Just tried it out and it doesn't seem like fontconfig-2.5.0-r1 is actually getting patched properly. The USE flags look correct and it compiled fine, but when portage ran the updates after emerge finished, it complained about "lcddefault" not being a valid fontconfig option... Then the cairo-1.6.4 ebuild failed complaining about LCD_* options not being defined, which leads me back to thinking that fontconfig isn't right.

I want to do some more investigating before I submit a proper error report. (one that actually has exact error messages instead of the crap I just listed. ;))

This might be obvious, but did you emerge fontconfig with the "ubuntu" USE flag enabled? The "newspr" flag only applies to libXft and cairo, while the "ubuntu" flag applies to freetype and fontconfig.
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Sun Aug 24, 2008 11:03 pm    Post subject: Reply with quote

I already stated that the USE flags looked correct... and if you look at the ebuilds, you will see that the correct ones are on by default. :P :D
Back to top
View user's profile Send private message
mwhitlock
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2006
Posts: 87
Location: New Hampshire, USA

PostPosted: Sun Aug 24, 2008 11:07 pm    Post subject: Reply with quote

yabbadabbadont wrote:
I already stated that the USE flags looked correct... and if you look at the ebuilds, you will see that the correct ones are on by default. :P :D

Well the reason I asked is that it "works for me," so something must be different about your setup. :roll:
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Sun Aug 24, 2008 11:15 pm    Post subject: Reply with quote

mwhitlock wrote:
yabbadabbadont wrote:
I already stated that the USE flags looked correct... and if you look at the ebuilds, you will see that the correct ones are on by default. :P :D

Well the reason I asked is that it "works for me," so something must be different about your setup. :roll:

I'm guessing that you added all the packages to your /etc/portage/package.keywords, in which case you are not using the same versions as I listed in my post.
Back to top
View user's profile Send private message
mwhitlock
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2006
Posts: 87
Location: New Hampshire, USA

PostPosted: Sun Aug 24, 2008 11:31 pm    Post subject: Reply with quote

yabbadabbadont wrote:
I'm guessing that you added all the packages to your /etc/portage/package.keywords, in which case you are not using the same versions as I listed in my post.

I have ACCEPT_KEYWORDS="~amd64" in my /etc/make.conf because I like running bleeding edge and don't mind reporting problems on bugs.gentoo.org.

But yes, you are correct, I'm not using the version of fontconfig that you listed, so my "works for me" does not apply here.
Code:
[ebuild   R   ] x11-libs/cairo-1.6.4-r1  USE="X glitz newspr opengl svg -debug -directfb -doc -test -xcb" 0 kB [1]
[ebuild   R   ]  x11-libs/libXft-2.1.13  USE="newspr -debug" 0 kB [?=>1]
[ebuild   R   ]   media-libs/fontconfig-2.6.0-r2  USE="ubuntu -doc" 0 kB [?=>1]
[ebuild   R   ]    media-libs/freetype-2.3.7  USE="X ubuntu -bindist -debug -doc -utils" 0 kB [?=>1]
Back to top
View user's profile Send private message
natros
n00b
n00b


Joined: 26 Sep 2003
Posts: 70

PostPosted: Mon Aug 25, 2008 12:03 am    Post subject: Reply with quote

I'm using:
Code:
=media-libs/fontconfig-2.6.0-r2
=media-libs/freetype-2.3.7
=x11-libs/cairo-1.6.4-r1
=x11-libs/libXft-2.1.12

and works pretty well :)
_________________
-=[abit ip35 pro core2quad q6600 (oc 3.0 ghz) 8 gb ram 2x320 raid0 ext4 xfx8800gt 512mb]=-
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Mon Aug 25, 2008 4:38 am    Post subject: Reply with quote

I just went ahead and keyworded all four of them. Now everything is fine.
Back to top
View user's profile Send private message
Phlogiston
Veteran
Veteran


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

PostPosted: Mon Aug 25, 2008 7:46 am    Post subject: Reply with quote

Mr. Tao wrote:
I’m glad I found this topic as I’ve used soor overlay which is not updated for a while. I’m going to test these patches right now. Meanwhile I’ve made repo definition for paludis:
/etc/paludis/lcd-filtering.conf wrote:
location = ${ROOT}/usr/portage/local/lcd-filtering
sync = tar+http://ogmrip.sourceforge.net/misc/gentoo-lcd-filtering.tar.bz2
sync_options = "--rsync-option=--exclude=profiles"
master_repository = gentoo
format = ebuild
names_cache = /var/cache/paludis/names
write_cache = /var/cache/paludis/metadata


Oh, thats cool, I did not know that. Is the tarball updated regularly?
_________________
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
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Mon Aug 25, 2008 8:09 am    Post subject: Reply with quote

Phlogiston wrote:
Oh, thats cool, I did not know that. Is the tarball updated regularly?

Almost as soon as there is a new version of either cairo, libXft, freetype or fontconfig in portage.
Back to top
View user's profile Send private message
Phlogiston
Veteran
Veteran


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

PostPosted: Mon Aug 25, 2008 8:46 am    Post subject: Reply with quote

bi3l wrote:
Phlogiston wrote:
Oh, thats cool, I did not know that. Is the tarball updated regularly?

Almost as soon as there is a new version of either cairo, libXft, freetype or fontconfig in portage.


Ok I'm curios how long it will last 8)
_________________
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
Phlogiston
Veteran
Veteran


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

PostPosted: Mon Aug 25, 2008 4:50 pm    Post subject: Reply with quote

Mr. Tao wrote:
I’m glad I found this topic as I’ve used soor overlay which is not updated for a while. I’m going to test these patches right now. Meanwhile I’ve made repo definition for paludis:
/etc/paludis/lcd-filtering.conf wrote:
location = ${ROOT}/usr/portage/local/lcd-filtering
sync = tar+http://ogmrip.sourceforge.net/misc/gentoo-lcd-filtering.tar.bz2
sync_options = "--rsync-option=--exclude=profiles"
master_repository = gentoo
format = ebuild
names_cache = /var/cache/paludis/names
write_cache = /var/cache/paludis/metadata


please add profiles/repo_name.

Code:
paludis@1219682970: [QA e.repo_name.unusable] Couldn't open repo_name file in '/usr/local/portage/lcd-filtering/profiles/', falling back to generated name 'x-lcd-filtering' (ignore this message if you have yet to sync this repository).

_________________
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
aronparsons
Tux's lil' helper
Tux's lil' helper


Joined: 04 Oct 2004
Posts: 117
Location: Virginia

PostPosted: Thu Aug 28, 2008 8:06 pm    Post subject: Reply with quote

:-)

http://packages.gentoo.org/package/x11-libs/cairo

http://cairographics.org/news/cairo-1.7.2/
Quote:
LCD subpixel filtering using FreeType
- -------------------------------------
FreeType 2.3.5 added support for various LCD subpixel filtering, and
fontconfig 2.6.0 added support for configuring LCD filter on a font by font
basis. Cairo now relies on FreeType and fontconfig for subpixel filtering.
This work is based on David Turner's original patch to cairo, maintained
and tested by Sylvain Pasche and others. Thanks all!
Back to top
View user's profile Send private message
mwhitlock
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2006
Posts: 87
Location: New Hampshire, USA

PostPosted: Thu Aug 28, 2008 8:32 pm    Post subject: Reply with quote

aronparsons wrote:
Cairo now relies on FreeType and fontconfig for subpixel filtering.

Does this mean we soon won't need cairo in the overlay? Now if only libXft would pick up the slack!

Does anyone know if Qt4 uses Cairo?
Back to top
View user's profile Send private message
natros
n00b
n00b


Joined: 26 Sep 2003
Posts: 70

PostPosted: Thu Aug 28, 2008 9:09 pm    Post subject: Reply with quote

mwhitlock wrote:
aronparsons wrote:
Cairo now relies on FreeType and fontconfig for subpixel filtering.

Does this mean we soon won't need cairo in the overlay? Now if only libXft would pick up the slack!

Does anyone know if Qt4 uses Cairo?

Qt does not use Cairo.
_________________
-=[abit ip35 pro core2quad q6600 (oc 3.0 ghz) 8 gb ram 2x320 raid0 ext4 xfx8800gt 512mb]=-
Back to top
View user's profile Send private message
aronparsons
Tux's lil' helper
Tux's lil' helper


Joined: 04 Oct 2004
Posts: 117
Location: Virginia

PostPosted: Thu Aug 28, 2008 9:32 pm    Post subject: Reply with quote

mwhitlock wrote:
Does this mean we soon won't need cairo in the overlay? Now if only libXft would pick up the slack!


That's right. libXft is the only package that still needs the LCD filter patches applied upstream. Everything else is in Portage and working great!
Back to top
View user's profile Send private message
kokoko3k
n00b
n00b


Joined: 06 May 2005
Posts: 72

PostPosted: Fri Sep 12, 2008 1:45 pm    Post subject: Reply with quote

What about kde4 and/or qt4?
As far as i know, qt4 doesn't use cairo nor Xft.
Back to top
View user's profile Send private message
Lori
Guru
Guru


Joined: 30 Mar 2004
Posts: 338
Location: Barcelona, Spain

PostPosted: Thu Sep 25, 2008 12:36 pm    Post subject: Reply with quote

One tiny little request... Can you please add EAPI="1" to the freetype and fontconfig ebuilds? I use paludis and I get these nasty warnings: "+/- prefixed IUSE flag names not allowed in this EAPI". I know I could do it manually, but I already configured your tarball as a paludis repository and would be so much nicer if it came with that fix... :P
_________________
"The hunt is sweeter then the kill."
Registered Linux User #176911
Back to top
View user's profile Send private message
mwhitlock
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2006
Posts: 87
Location: New Hampshire, USA

PostPosted: Thu Sep 25, 2008 1:34 pm    Post subject: Reply with quote

kokoko3k wrote:
What about kde4 and/or qt4?
As far as i know, qt4 doesn't use cairo nor Xft.

I have the Last.fm player installed, and it uses Qt4, and its fonts look identical to those of the rest of my system, so I would guess that Qt4 refrains from messing with the glyphs it receives from FreeType, which means they remain properly filtered for LCD.
Back to top
View user's profile Send private message
aliquid
n00b
n00b


Joined: 14 Mar 2008
Posts: 37

PostPosted: Fri Sep 26, 2008 8:28 am    Post subject: Reply with quote

From cairo 1.8.0 release announcement:
Quote:
Note also that the code that had been in cairo 1.7.x calling into
freetype's optional lcd_filter function was removed from cairo before
the 1.8.0 release. We do expect this code to come back in some form in
the future.

Sad, but no lcd font rendering for now.

Edit:
Here's a reason:
Quote:
Remove all lcd_filter code.
We reverted the public API for setting lcd_filter font options back in 1b42bc8033bc , but we had left the implementation which would examine fontconfig and Xft properties for the option, and which would call into freetype for subpixel glyph rasterization. However, I recently realized, (and the test suite had been trying to tell me for a while), that this approach would cause a regression for users who were previously using sub-pixel text, but without sub-pixel rendering built directly into freetype. That's not acceptable, so all the code is coming out for now.
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 ... 24, 25, 26 ... 28, 29, 30  Next
Page 25 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