Thank you. I still can't get over how easier it is to read well rendered fonts.boniek wrote:Use freetype from portage tree - it's patched already.
Code: Select all
> eselect fontconfig list
Available fontconfig .conf files ( * is enabled ):
[1] 10-autohint.conf
[2] 10-no-sub-pixel.conf
[3] 10-sub-pixel-bgr.conf
[4] 10-sub-pixel-rgb.conf
[5] 10-sub-pixel-vbgr.conf
[6] 10-sub-pixel-vrgb.conf
[7] 10-unhinted.conf
[8] 20-fix-globaladvance.conf *
[9] 20-lohit-gujarati.conf
[10] 20-unhint-small-dejavu.conf
[11] 20-unhint-small-dejavu-experimental.conf
[12] 20-unhint-small-vera.conf *
[13] 25-unhint-nonlatin.conf
[14] 30-amt-aliases.conf
[15] 30-metric-aliases.conf *
[16] 30-urw-aliases.conf *
[17] 40-generic.conf
[18] 40-nonlatin.conf *
[19] 45-latin.conf *
[20] 49-sansserif.conf *
[21] 50-user.conf *
[22] 51-local.conf *
[23] 57-dejavu.conf
[24] 59-dejavu.conf
[25] 60-latin.conf *
[26] 60-liberation.conf
[27] 61-dejavu-experimental.conf
[28] 65-fonts-persian.conf *
[29] 65-nonlatin.conf *
[30] 69-unifont.conf *
[31] 70-no-bitmaps.conf
[32] 70-yes-bitmaps.conf
[33] 80-delicious.conf *
[34] 90-synthetic.conf *

That's true.bluesurfer wrote:I use the cairo-1.4.12 ebuild from gentoo-china and libXft-2.1.12 from xeffects overlay. Looks great!
What about the quantization patch for freetype - why do I not need it?
BTW I think the ubuntu guys have already implemeted the patches in gutsy according to this:
http://wiki.ubuntuusers.de/Schriftbild_verbessern
http://ubuntuforums.org/showthread.php?t=555964



A few posts to this thread in October claimed that the xeffects project is still alive, but the overlay is not being updated to keep pace with portage. Now people are using gentoo-china instead of xeffects to provide the ebuilds? Is somebody actively maintaining the xeffects overlay?punkid wrote:The newer cairo with newspr patch has been commited into gentoo-china overlay
I'm emerging it right now

I had to pull both xeffects and gentoo-china in order to get patched libXft-2.1.12 and cairo-1.4.12, respectively. I used Layman to get the xeffects overlay, but gentoo-china isn't listed in it, so I had to check that one out manually.elkhunter wrote:Is this howto still accurate? Should I emerge xeffects or gentoo-china and what USE flags are needed (I saw posts indicating to use newspr and one indicated to use filter_* instead). Also, what should I put in /etc/fonts/local.conf and in ~/.fonts.conf and what fontconfig scripts do I want enabled for an LCD (RGB) monitor? Any help appreciated.
Code: Select all
# cp /usr/portage/kde-base/kdelibs/kdelibs-3.5.8-r2.ebuild /usr/local/portage/layman/xeffects/kde-base/kdelibs/
# diff -u /usr/portage/kde-base/kdelibs/kdelibs-3.5.8-r1.ebuild \
/usr/local/portage/layman/xeffects/kde-base/kdelibs/kdelibs-3.5.8-r1.ebuild |
patch /usr/local/portage/layman/xeffects/kde-base/kdelibs/kdelibs-3.5.8-r2.ebuild
# ebuild /usr/local/portage/layman/xeffects/kde-base/kdelibs/kdelibs-3.5.8-r2.ebuild manifestCode: Select all
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Enable sub-pixel anti-aliasing -->
<match target="font" >
<edit mode="assign" name="rgba" >
<const>rgb</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="antialias" >
<bool>true</bool>
</edit>
</match>
<!-- Disable hinting (I like Mac-ish fonts) -->
<match target="font" >
<edit mode="assign" name="hinting" >
<bool>false</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hintstyle" >
<const>hintnone</const>
</edit>
</match>
<!-- Ban bitmap fonts (yuck!) -->
<include>/etc/fonts/conf.avail/70-no-bitmaps.conf</include>
<!-- Enable hinting for DejaVu Sans Mono, my terminal font -->
<match target="font">
<test name="family">
<string>DejaVu Sans Mono</string>
</test>
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
<edit mode="assign" name="hintstyle">
<const>hintfull</const>
</edit>
</match>
<!-- Ban Type-1 fonts because they render poorly -->
<selectfont>
<rejectfont>
<pattern>
<patelt name="fontformat" >
<string>Type 1</string>
</patelt>
</pattern>
</rejectfont>
</selectfont>
</fontconfig>

Code: Select all
cairo-xlib-screen.c:191: error: 'FC_LCD_FILTER_DEFAULT' undeclared
cairo-xlib-screen.c:234: error: 'FC_LCD_FILTER_NONE' undeclared
cairo-xlib-screen.c:237: error: 'FC_LCD_FILTER_LIGHT' undeclared
cairo-xlib-screen.c:240: error: 'FC_LCD_FILTER_LEGACY' undeclared
Strange. gentoo-china is in layman on my system.mwhitlock wrote:I had to pull both xeffects and gentoo-china in order to get patched libXft-2.1.12 and cairo-1.4.12, respectively. I used Layman to get the xeffects overlay, but gentoo-china isn't listed in it, so I had to check that one out manually.
Why do you want kdelibs from xeffects? There's no need to if you just want to have better rendered fonts.mwhitlock wrote:Additionally, because xeffects doesn't have kdelibs-3.5.8-r2 yet (c'mon guys!), I had to make my own: