freetype-devel
[Top][All Lists]
Advanced

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

Re: Font-rs GSoC Phase 1 update


From: Alexei Podtelezhnikov
Subject: Re: Font-rs GSoC Phase 1 update
Date: Mon, 18 Jul 2022 10:17:11 -0400

> 
> The rasterizer is working now (albeit with some artefacts, image attached), 
> but the code is in a very early stage and I'm working on cleaning it.

Your rasterizer has a problem with Bézier curves.  Any algorithm starts with 
flattening them or replacing with short straight segments. Then you walk the 
contours and integrate the area of each visited pixel, called cell in the 
current algorithm. This is trivial for straight lines. Of course, there are 
tricks with order linked lists for each scan line. The coverage value helps 
with the winding rule and correct the integral. I think this part is the same 
for either algorithm.





reply via email to

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