Anuj, You cannot use just the orientation of the closest contour. That's what we did in GLyphy but is wrong for reasons you found out. You need to calculate actual winding number of the sampling point.
On Mon, Jun 1, 2020 at 3:21 AM Anuj Verma <an...@iitbhilai.ac.in> wrote: > Hello Werner, > > > > *> As you like. The idea is that you can go wild within your branch, and > > that you prepare another, cleaned-up branch for final GSoC submission > > that contains commits in a logical order.* > > In that case I will start integrating the feature in FreeType. I have > decided to create a new renderer module and add a render mode accordingly. > And since I have a standalone implementation for generating SDF from > outlines, > I will go ahead and do that first and later I will do it for bitmaps. > > Thanks, > > Anuj > -- behdad http://behdad.org/