freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] SetLcdFilter docs


From: Alexei Podtelezhnikov
Subject: Re: [ft-devel] SetLcdFilter docs
Date: Tue, 19 Jan 2016 10:55:34 -0500

> "...the filter adds up to 3 pixels to the left, and up to 3 pixels to
> the right."

This is not a `padding' per se, but a necessity to make the color
filter work.  The bytes are added around line 190 in file
`smooth/ftsmooth.c'.

Right. I see:
width   += 3 * extra;
pitch = FT_PAD_CEIL( width, 4 );
where extra = 2 for FIR filters. So we add 3 *subpixels* on each side plus rounding. So on one hand, the docs say something different. On the other hand, the filter actually needs just 2 extra *subpixels* on each side.Brrrrr, something is not right.   


reply via email to

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