freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] FreeType grayscale anti-aliasing


From: Alexei Podtelezhnikov
Subject: Re: [ft-devel] FreeType grayscale anti-aliasing
Date: Sat, 13 Oct 2018 09:14:49 -0400

>> Anyway, I am trying to implement anti-aliasing on our font system
>> and it is proving difficult, specifically for Bezier curves.  I'm
>> having a hard time finding where in the FreeType code the
>> anti-aliasing is done so I can try to model our system after it, or
>> at least learn what it's doing.  Right now I've implemented a
>> multi-sampling process where when I am breaking the Bezier curves
>> down into segments that fall on a scanline I find the line
>> intersections and then use those when performing the sampling.

It is more important to bisect the curves into reasonably straight pieces, 
subject to some criteria of straightness. Then you do what you do with straight 
segments: integrate square pixel coverage. FreeType uses sparse matrix 
representation during integration. 

Some people claim that using dense matrix with vectorization is faster. I have 
my doubts because I can do parallelization on the level of text/word rendering.

Alexei


reply via email to

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