freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Artefacts when rendering with FreeType 2.4.9


From: Werner LEMBERG
Subject: Re: [ft-devel] Artefacts when rendering with FreeType 2.4.9
Date: Wed, 13 Jun 2012 15:22:04 +0200 (CEST)

> Do you understand the Rx calculations?

Not without a lot of time to introduce myself to the code :-)

> They are wrong if integer overflows, aren't they?

Yes, it seems so, but up to now we haven't had a bug report.

> So there will be artifacts, possibly very small ones, when
> SMulDiv_NoRound becomes necessary.  Aren't we overthinking here?
> Does Ftgrays avoid FT_MulDiv by splitting long lines?

It's probably a good idea to fix Rx also.  What about this:

  old:
       Rx = ( ras.precision * Dx ) % Dy;

  new:
       Rx = ( ( ras.precision % Dy ) * ( Dx % Dy ) ) % Dy;


     Werner



reply via email to

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