freetype-devel
[Top][All Lists]
Advanced

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

Re: GSOC - Distance Fields


From: Anuj Verma
Subject: Re: GSOC - Distance Fields
Date: Thu, 4 Jun 2020 08:18:09 +0530

Hello Behdad, Jim,

> I see that in your implementation you are converting cubics to quadratic spline. That makes a lot of sense and I support that.

Is it better to split the cubic bezier into quadratic one? why? Currently I am using Newton-Raphson's iteration to find the
closest point on cubic curves, which is a bit slow but works well and produces accurate results. (https://imgur.com/QSGCoIj)

> I think we do want a 8bit representation at least, and possible a higher one.

Currently I am using 32bit floats, but since freetype doesn't use floats I am
thinking of using 32bit 16.16 fixed point instead. The problem with 16.16 is that
most of the bits in the integer part will not be used because I am normalizing the
values between [-1.0, 1.0] before outputting the data.
The whole fixed point thing is pretty new to me, so any suggestions will be greatly
helpful.


Thanks in advance,
Anuj

reply via email to

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