freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Better render hline last cell at smooth


From: suzuki toshiya
Subject: Re: [ft-devel] Better render hline last cell at smooth
Date: Tue, 08 May 2012 01:18:59 +0900
User-agent: Mozilla-Thunderbird 2.0.0.12 (X11/20080406)

Hi,

Could you post some pictures comparing the results with/without your patch?

Regards,
mpsuzuki

向雅 wrote:
> Hi,
> I doing some tests for render, and get this:
> If change hline render last cell, will get better smooth at right side:
> 
> diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c
> index 926020a..8956d83 100644
> --- a/src/smooth/ftgrays.c
> +++ b/src/smooth/ftgrays.c
> @@ -691,7 +691,7 @@ typedef ptrdiff_t  FT_PtrDist;
>      }
> 
>      delta      = y2 - y1;
> -    ras.area  += (TArea)(( fx2 + ONE_PIXEL - first ) * delta);
> +    ras.area  += (TArea)(( fx2 + ONE_PIXEL + first ) * delta);
>      ras.cover += delta;
>    }
> 
> Regards,
> Qinxian
> 
> 致敬
> 向雅
> 
> _______________________________________________
> Freetype-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/freetype-devel




reply via email to

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