Hello David,

I took Alexei's advice and have already started writing the standalone
implementation. You can check it out here:
https://github.com/preversewharf45/freetype2-sdf.

Thanks,

Anuj

On Mon, May 18, 2020, 12:20 PM David Turner <da...@freetype.org> wrote:

> I agree with Alexei that it's probably a good idea to start writing a
> prototype with whatever language / format you feel the more fluent first so
> we can look at the algorithms and the outputted data.
> This can later be rewritten into something more FreeType-specific (e.g.
> fixed-floats are better than floats if you have simple ranges like
> [-1.0..1.0] in general).
>
> - David
>
> Le mer. 13 mai 2020 à 16:59, Alexei Podtelezhnikov <apodt...@gmail.com> a
> écrit :
>
>> On Wed, May 13, 2020 at 10:37 AM Anuj Verma <an...@iitbhilai.ac.in>
>> wrote:
>> >
>> > > What do you need from FreeType to calculate DF?
>> > > Do you see or know
>> > where to find everything you need?
>> >
>> > I will need the bitmap and/or the outline depending upon the type of
>> font. And yes I know where to find those. They both can be accessed from
>> FT_Face.
>>
>> Great! Without further delay, go ahead and write a standalone program
>> that calculates DF for a outline glyph in whatever format you choose
>> or is appropriate. This is a lot of work by itself. How are you going
>> to calculate it straight from Bezier outlines should concern you much
>> more than memory issues.
>>
>> We can think about integrating it into FreeType ,once you have a
>> standalone implementation.
>>
>> Alexei
>>
>>

Reply via email to