

Disable it - it won't help in the slightest. You can see from the ebuild what it does.Carps wrote:would using the auto-hinter useflag on freetype help or cause more issues?

Code: Select all
root@gentoo_ws:~ # layman -a lcd-filtering
* Running command "/usr/bin/git clone "git://gitorious.org/lcd-filtering/lcd-filtering.git" "/var/lib/layman/lcd-filtering""...
Initialized empty Git repository in /var/lib/layman/lcd-filtering/.git/
remote: Counting objects: 121, done.
remote: Compressing objects: 100% (117/117), done.
remote: Total 121 (delta 41), reused 0 (delta 0)
Receiving objects: 100% (121/121), 77.59 KiB | 63 KiB/s, done.
Resolving deltas: 100% (41/41), done.
* Successfully added overlay "lcd-filtering".
root@gentoo_ws:~ # eix-update -a lcd-filtering
Reading Portage settings ..
Building database (/var/cache/eix) ..
[0] "gentoo" /usr/portage/ (cache: metadata-flat)
Reading category 154|154 (100%) Finished
[1] "" /usr/portage/local/overlay (cache: parse|ebuild*#metadata-flat#assign)
Reading category 154|154 (100%) Finished
[2] "" lcd-filtering (cache: parse|ebuild*#metadata-flat#assign)
Reading category 154|154 (100%) EMPTY!Code: Select all
Section "Files"
FontPath "/usr/share/fonts/terminus"
FontPath "/usr/share/fonts/corefonts"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/75dpi/"
FontPath "/usr/share/fonts/misc/"
...
EndSectionCode: Select all
root@gentoo_ws:~ # lsof | grep fonts
firefox-b 17590 andi mem REG 253,5 139640 1976947 /usr/share/fonts/corefonts/verdana.ttf
firefox-b 17590 andi mem REG 253,5 154264 1976951 /usr/share/fonts/corefonts/verdanai.ttf
firefox-b 17590 andi mem REG 253,5 360337 1859245 /usr/share/fonts/misc/12x13ja.pcf.gz
firefox-b 17590 andi mem REG 253,5 96263 2362229 /usr/share/fonts/default/ghostscript/n022003l.pfb
firefox-b 17590 andi mem REG 253,5 275572 1976933 /usr/share/fonts/corefonts/arial.ttf
firefox-b 17590 andi mem REG 253,5 17969 1859416 /usr/share/fonts/misc/7x13B.pcf.gz
firefox-b 17590 andi mem REG 253,5 66372 2362267 /usr/share/fonts/TTF/luxisri.ttf
firefox-b 17590 andi mem REG 253,5 26355 1859376 /usr/share/fonts/misc/6x10.pcf.gz
firefox-b 17590 andi mem REG 253,5 136032 1978205 /usr/share/fonts/corefonts/verdanab.ttf
firefox-b 17590 andi mem REG 253,5 71784 2362294 /usr/share/fonts/TTF/luximr.ttf
firefox-b 17590 andi mem REG 253,5 4459 1859430 /usr/share/fonts/misc/6x10-ISO8859-1.pcf.gz
firefox-b 17590 andi mem REG 253,5 5063 1880230 /usr/share/fonts/terminus/ter-112n.pcf.gzCode: Select all
</match>
<!-- Replace Courier New with a better-looking font -->
<match target="pattern" name="family">
<test name="family" qual="any">
<string>Courier New</string>
</test>
<edit name="family" mode="assign">
<!-- Other choices - Andale Mono, Courier New, Luxi Mono, Bitstream Vera Sans Mono -->
<string>Bitstream Vera Sans Mono</string>
</edit>
</match>
<!-- Replace Courier New with a better-looking font -->
<match target="pattern" name="family">
<test name="family" qual="any">
<string>Courier</string>
</test>
<edit name="family" mode="assign">
<!-- Other choices - Andale Mono, Courier New, Luxi Mono, Bitstream Vera Sans Mono -->
<string>Bitstream Vera Sans Mono</string>
</edit>
</match>

That won't use the system cairo - need --enable-system-caironorg wrote:firefox-bin
May be but this fixed the issue with Nimbus Mono L used instead of switching to Courier New in Firefox. Chromium does this without changing 30-metric-aliases.confPaulBredbury wrote:Your fontconfig rant makes very little sense.
And i tried this patch and it looks nice, but the above problem with Nimbus Mono L for Courier was still there.PaulBredbury wrote:I will repeat again, Infinality's font rendering is superior to Ubuntu's, making most font substitutions unnecessary, because Infinality's font rendering makes the non-substituted fonts look good enough.

Well, there's still the configuration from fontconfig's default install, in /etc/fonts/conf.d/ (as symlinks) which I don't mess with:chabo wrote:use only /etc/fonts/local.conf and and your ~/.fonts.conf
Code: Select all
$ ls /etc/fonts/conf.d/
10-no-sub-pixel.conf 20-unhint-small-vera.conf 30-replace-bitmap-fonts.conf 40-nonlatin.conf 49-sansserif.conf 51-local.conf 65-fonts-persian.conf 69-unifont.conf 90-synthetic.conf
20-fix-globaladvance.conf 30-metric-aliases.conf 30-urw-aliases.conf 45-latin.conf 50-user.conf 60-latin.conf 65-nonlatin.conf 80-delicious.conf

Yeah, it looks better - and gotten from just removing one line of codeInfinality wrote:a new enhancement to synthetic emboldening
Code: Select all
outline->points[n].y = v_cur.y + strength + in.y;
Just one more question.PaulBredbury wrote:Well, there's still the configuration from fontconfig's default install, in /etc/fonts/conf.d/ (as symlinks) which I don't mess with:chabo wrote:use only /etc/fonts/local.conf and and your ~/.fonts.conf
Code: Select all
$ ls /etc/fonts/conf.d/ 10-no-sub-pixel.conf 20-unhint-small-vera.conf 30-replace-bitmap-fonts.conf 40-nonlatin.conf 49-sansserif.conf 51-local.conf 65-fonts-persian.conf 69-unifont.conf 90-synthetic.conf 20-fix-globaladvance.conf 30-metric-aliases.conf 30-urw-aliases.conf 45-latin.conf 50-user.conf 60-latin.conf 65-nonlatin.conf 80-delicious.conf

I use Lunar Linux, and for now am still using my own versions of fontconfig, libXft and cairo which include Ubuntu's patches (and my cairo-respect-fontconfig.patch) - basically equivalent to those in the lcd-filtering overlay.chabo wrote:Do You use some packages from lcd-filtering overlay

Is there any guide or something? I've edited freetype ebuild from lcd-filtering and tried to apply the patch (freetype-2.4.2-infinality-20100904.patch), but when emerging, it always fails.PaulBredbury wrote:Infinality has a great freetype patch for sub- rather than whole-pixel hinting, which has better font spacing, as an alternative to Ubuntu's freetype LCD patch.
Here's a freetype-2.4.2-infinality-20100904.patch all-in-one patch I've made for freetype 2.4.2 - take a look at it, to see what it contains.
I still also recommend adding:
sed -i -e "s:0x10, 0x40, 0x70, 0x40, 0x10:0x1c, 0x38, 0x55, 0x38, 0x1c:" src/base/ftlcdfil.c
Old stuff:
freetype-2.4.2-infinality-20100903.patch
freetype-2.4.2-infinality-20100828.patch
Old patch
Here's an all-in-one patch I've made for freetype 2.4.0 (also works with freetype 2.4.1)
Edit: Got "hinting" vs "filtering" confused
Edit2: Here's the patch for freetype 2.4.2
Edit3: Added upstream patches.

Code: Select all
##LCD Filtering Overlay
media-libs/fontconfig lcdfilter -cleartype
media-libs/freetype lcdfilter -cleartype
x11-libs/cairo glitz lcdfilter -cleartype
x11-libs/libXft lcdfilter -cleartype




Tried this and took screenshot to compare against cairo with cleartype. Quality isn't bad, but as much as I tried, cleartype seems to produce clearer, crispier fonts on my LCD. I am sticking with cleartype.PaulBredbury wrote:People seem confused, so let's recap. To get the current state-of-the-art in font rendering:
1. Apply Infinality's freetype patches (example: pross overlay).
2. Apply Ubuntu's patches to fontconfig. This step doesn't seem to be strictly required.
3. Apply Ubuntu's patches to libXft, so that apps which use libXft will use the better rendering.
4. Apply Ubuntu's patches to cairo, so that apps which use cairo will use the better rendering. Also apply my cairo-respect-fontconfig.patch, so that ~/.fonts.conf isn't occasionally ignored.
5. Use Infinality's fontconfig rules, in /etc/fonts/conf.d/ or as ~/.fonts.conf
6. For completeness, set up ~/.Xresources
7. Restart your apps and marvel at the beautiful fonts.