* Ginn Chen <Ginn.Chen at Sun.COM> [2008-09-22 10:07]:
>> Firefox ignores Gnome's font settings which I've set to full
>> hinting, fonts are thus really blurry. I'm not sure why this is
>> as it appears to be linked to system freetype. Is this a known
>> problem?
>
> Yes, the cairo libraries in Firefox 3 has some issues with hinting.
> https://bugs.freedesktop.org/show_bug.cgi?id=10301

This bug seems to be about LCD filtering, what I see is not a
problem with subpixel rendering but with hinting. Without hinting
fonts in Firefox look equally bad (that is bold and unsharp) on both
my LCD and CRT screens and differ from Gnome apps.

> https://bugzilla.mozilla.org/show_bug.cgi?id=436760

This does not appear to be related to the issue, it's about
firefox being linked to an in-tree version of cairo.

However both the native and contributed build of Firefox are
definitly linked to system cairo:

$ ldd /usr/lib/firefox/firefox-bin | grep cairo
????????libcairo.so.2 =>???????? /usr/lib/libcairo.so.2
????????libpangocairo-1.0.so.0 =>??????? /usr/lib/libpangocairo-1.0.so.0

As far as I can see cairo is built with full hinting enabled:
http://src.opensolaris.org/source/xref/jds/spec-files/trunk/base-specs/cairo.spec#20

And full hinting also works perfectly with all Gnome applications.
I also checked my settings:

$ xrdb -q | grep Xft
Xft.antialias:??1
Xft.dpi:????????96
Xft.hinting:????1
Xft.hintstyle:??hintfull
Xft.rgba:???????rgb

$ cat ~/.fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font" >
 <edit mode="assign" name="hinting" >
  <bool>true</bool>
 </edit>
</match>
<match target="font" >
 <edit mode="assign" name="hintstyle" >
  <const>hintfull</const>
 </edit>
</match>
</fontconfig>

I'm a bit baffled by this, why does it ignore hinting settings?
-- 
Guido Berhoerster

Reply via email to