[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] regarding freetype 2 cubic curve flattening
From: |
Alexei Podtelezhnikov |
Subject: |
Re: [ft-devel] regarding freetype 2 cubic curve flattening |
Date: |
Mon, 31 Oct 2011 07:15:04 -0400 |
On Mon, Oct 31, 2011 at 3:22 AM, Vivek Rathod <address@hidden> wrote:
> s is calculated as
> "s = FT_ABS( dy * dx1 - dx * dy1 );" which means s is the perpendicular
> distance of the control point from chord multiplied by L
>
> which means currently s_limit is being compared with perpendicular distance
> of control point * L .
Correct. s_limit is also multiplied by L on line 1065 in ftgrays.c:
s_limit = L * (TPos)( ONE_PIXEL / 6 );
I do not see a problem here.
> but s_limit is actual distance, so in order to do the correct comparison
> (and to avoid division) don't you think we need to multiply s_limit once
> more by L ?
This is wrong. Look at the actual code.