On Sun, 2002-08-18 at 21:25, Giuseppe Ghib� wrote:
> Adam Williamson wrote:
> 
>    > On Sun, 2002-08-18 at 11:28, Michel Fodje wrote:
>    >
>    >>Is anti-aliased text supposed to work in Galeon/Mozilla?  My experience
> 
> Yes.
> 
>    >>with all the Betas so far is that it works occasionally.  And when it
>    >>doesn't, I see strange effects like overlapping text.  Usually,
>    >>reloading the page either brings back aa-text or fixes the overlap
>    >>without bringing back aa-text, or has no effect at all.
>    >>
>    >>Has anyone observed this?
>    >
>    >
>    > IIRC, the Mozilla packager changed the way it handles fonts when we
>    > switched to 1.1 beta. (Changelog for that release includes "Patch44 & 45
>    > (Giuseppe): enable freetype2 backend by default"). This definitely
>    > changed the font rendering here, however it doesn't really look quite
>    > right, especially on my laptop. It certainly doesn't display text as
> 
> which kind of TTF fonts are you using? IMHO with AA TTF enabled fonts
> inside mozilla are rendered pretty better than unantialiased fonts (accessed
> via xfs). Currently the feature is controlled by:

It's better than un-AA fonts; it's not as good as properly anti-aliased
fonts (as you describe later :>). I understand the problem, though. Just
a shame Moz has to be awkward and not go through Xft :(
 
> pref("font.FreeType2.enable", true);
> pref("font.FreeType2.autohinted", ...);
> pref("font.FreeType2.unhinted", ...);
> 
> in the unix.js file or the user config file.
> 
> Note that in this case mozilla directly access to the truetype fonts
> (and not trough the xfs [which hasn't antialias]). The TTF fonts must be
> in one of the following directories:
> 
> /usr/X11R6/lib/X11/fonts/drakfont/ttf
> /usr/X11R6/lib/X11/fonts/MathML/ttf
> /usr/X11R6/lib/X11/fonts/TTF
> /usr/lib/office60/share/fonts/truetype

Yes. All this is dealt with.

> The antialias is achieved trough the libfreetype2 so it doesn't have the
> subpixel antialias feature of Xft which slightly improve AA on LCD display
> (and only LCDs). Of course if you don't have TTF fonts in one of this
> directories, the xfs fonts are used. Note that TTF fonts are listed
> uppercase in the mozilla can be selected in mozilla in the 
> Preferences/Appareance/Fonts menu.

Have you *used* an LCD display? We're not talking slightly here; the
difference between AA rendering with and without subpixel hinting, on my
LCD display at least, is *massive* (subjectively).
 
> An Xft patch for mozilla exists but is not stable and the
> mozilla team doesn't seem planning to swallow it in the main tree.

I thought that was the case; i think the Moz plan is simply to get it
dealt with in the GTK2 port. The GTK2 port will use normal GTK2 font
rendering method, which goes through Xft, thus no problem. When it's
done. *sigh*
 
> Of course the best results can be achieved using:
> 
> pref("font.FreeType2.enable", true);
> pref("font.FreeType2.autohinted", false);
> pref("font.FreeType2.unhinted", false);
> 
> and libfreetype2 with bytecode enabled (as the plf one). But our libfreetype2
> has the bytecode hinter disabled (for patent reason), so we have to deal with:
> 
> pref("font.FreeType2.autohinted", false);
> pref("font.FreeType2.unhinted", true);
> 
> which gives accettable AA (someone could find a little blurred), but to
> me it appear at least at the same level of the AA in the xpdf, xdvi/kdvi or 
> acroread and sligthly better than gv. Trying instead
> 
> pref("font.FreeType2.unhinted", false)
> 
> as someone suggested gives worst results on many fonts (some of them appears
> stretched horizontally) using our current libfreetype2 library (and not the plf
> one).

Yup, found this out in a different post and it helps a lot (I have the
plf package). Interestingly, Freetype2 is now up to 2.1.2, which they
claim has a good-enough hinting alternative without patent problems. Has
anyone looked into this? Why is it not in Mandrake? (Yet...)

Thanks for the info.
-- 
adamw


Reply via email to