On Sep 22, 2008, at 8:17 PM, Guido Berhoerster wrote: > * 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
That's not true. What you see is the dependence of gtk+2.0 library. The in tree cairo is inside Firefox libxul.so. Ginn > > > 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 > _______________________________________________ > desktop-discuss mailing list > desktop-discuss at opensolaris.org -------- Ginn Chen Software Engineer, Browser Team Sun Microsystems, Inc. Phone: x82869 / +86-10-62673869 Fax: +86-10-62780969
