freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] Two patches for FT


From: Frederic Crozat
Subject: Re: [ft-devel] Two patches for FT
Date: Thu, 10 Mar 2005 15:12:30 +0100

Le jeudi 10 mars 2005 à 11:41 +0100, David Turner a écrit :
> > 2. Freetype2 has a bug where if you ask it to resize a 13x13 face to a 
> > 12.5x12.5 face, it decides that they're close enough already and does 
> > nothing, even though creating faces from scratch for 13x13 and 12.5x12.5 
> > would give you slightly different font metrics. Because Xft caches faces 
> > internally, this means when you're working with fractional font sizes 
> > Xft will sometimes give you varying font metrics depending on whether 
> > it's reusing a face in the cache (and hitting the Freetype2 bug when it 
> > tries to resize the face) or creating one from scratch. This in turn 
> > occasionally causes line heights, and sometimes the intrinsic width of 
> > text inputs which is computed from font maxAdvance, to be off by one pixel.
> > http://weblogs.mozillazine.org/roc/archives/2005/03/visual_regressi.html
> > 
> This is registered as bug #12263. I've commited a fix yesterday
> but I'm still unsure that it solves all problems experimented by
> Mozilla. I've put Robert O'Callahan on the CC: of this message. I hope 
> he'll be able to check the CVS version of the library and tell us if we 
> can close the bug.

Well, I can say this fix has improved gecko rendering a lot on some
webpages : 

before the fix :
http://people.mandrakesoft.com/~fcrozat/freetype/freetype-broken.png

with the fix (and only the fix) :
http://people.mandrakesoft.com/~fcrozat/freetype/freetype-ok.png

-- 
Frederic Crozat <address@hidden>
Mandrakesoft





reply via email to

[Prev in Thread] Current Thread [Next in Thread]