[sdf] Use 'counter-clockwise', not 'anti-clockwise'.

We prefer US nomenclature.

* src/sdf/ftsdf.c (SDF_Contour_Orientation):
s/SDF_ORIENTATION-ACW/SDF_ORIENTATION_CCW/.
Update all users.
This commit is contained in:
Werner Lemberg 2020-12-26 10:50:21 +01:00
parent bca740d566
commit c6ff2556c8
3 changed files with 20 additions and 10 deletions

View File

@ -1,3 +1,13 @@
2020-12-26 Werner Lemberg <wl@gnu.org>
[sdf] Use 'counter-clockwise', not 'anti-clockwise'.
We prefer US nomenclature.
* src/sdf/ftsdf.c (SDF_Contour_Orientation):
s/SDF_ORIENTATION-ACW/SDF_ORIENTATION_CCW/.
Update all users.
2020-12-26 Werner Lemberg <wl@gnu.org> 2020-12-26 Werner Lemberg <wl@gnu.org>
* src/base/ftobjs.c (pixel_modes): Updated. * src/base/ftobjs.c (pixel_modes): Updated.

View File

@ -257,8 +257,8 @@
* SDF_ORIENTATION_CW :: * SDF_ORIENTATION_CW ::
* Clockwise orientation (positive area covered). * Clockwise orientation (positive area covered).
* *
* SDF_ORIENTATION_ACW :: * SDF_ORIENTATION_CCW ::
* Anti-clockwise orientation (negative area covered). * Counter-clockwise orientation (negative area covered).
* *
* @Note: * @Note:
* See @FT_Outline_Get_Orientation for more details. * See @FT_Outline_Get_Orientation for more details.
@ -268,7 +268,7 @@
{ {
SDF_ORIENTATION_NONE = 0, SDF_ORIENTATION_NONE = 0,
SDF_ORIENTATION_CW = 1, SDF_ORIENTATION_CW = 1,
SDF_ORIENTATION_ACW = 2 SDF_ORIENTATION_CCW = 2
} SDF_Contour_Orientation; } SDF_Contour_Orientation;
@ -991,7 +991,7 @@
if ( area > 0 ) if ( area > 0 )
return SDF_ORIENTATION_CW; return SDF_ORIENTATION_CW;
else else
return SDF_ORIENTATION_ACW; return SDF_ORIENTATION_CCW;
} }
@ -3568,7 +3568,7 @@
/* overloads the default sign of the outside */ /* overloads the default sign of the outside */
/* pixels, which is necessary for */ /* pixels, which is necessary for */
/* counter-clockwise contours. */ /* counter-clockwise contours. */
if ( orientations[i] == SDF_ORIENTATION_ACW && if ( orientations[i] == SDF_ORIENTATION_CCW &&
internal_params.orientation == FT_ORIENTATION_FILL_RIGHT ) internal_params.orientation == FT_ORIENTATION_FILL_RIGHT )
internal_params.overload_sign = 1; internal_params.overload_sign = 1;
else if ( orientations[i] == SDF_ORIENTATION_CW && else if ( orientations[i] == SDF_ORIENTATION_CW &&
@ -3608,8 +3608,8 @@
if ( internal_params.orientation == FT_ORIENTATION_FILL_LEFT ) if ( internal_params.orientation == FT_ORIENTATION_FILL_LEFT )
{ {
if ( orientations[i] == SDF_ORIENTATION_CW ) if ( orientations[i] == SDF_ORIENTATION_CW )
orientations[i] = SDF_ORIENTATION_ACW; orientations[i] = SDF_ORIENTATION_CCW;
else if ( orientations[i] == SDF_ORIENTATION_ACW ) else if ( orientations[i] == SDF_ORIENTATION_CCW )
orientations[i] = SDF_ORIENTATION_CW; orientations[i] = SDF_ORIENTATION_CW;
} }

View File

@ -4362,7 +4362,7 @@
if ( ( opcode & 1 ) != 0 ) if ( ( opcode & 1 ) != 0 )
{ {
C = B; /* counter clockwise rotation */ C = B; /* counter-clockwise rotation */
B = A; B = A;
A = NEG_LONG( C ); A = NEG_LONG( C );
} }
@ -5050,7 +5050,7 @@
if ( ( opcode & 1 ) != 0 ) if ( ( opcode & 1 ) != 0 )
{ {
C = B; /* counter clockwise rotation */ C = B; /* counter-clockwise rotation */
B = A; B = A;
A = NEG_LONG( C ); A = NEG_LONG( C );
} }
@ -5074,7 +5074,7 @@
if ( ( opcode & 1 ) != 0 ) if ( ( opcode & 1 ) != 0 )
{ {
C = B; /* counter clockwise rotation */ C = B; /* counter-clockwise rotation */
B = A; B = A;
A = NEG_LONG( C ); A = NEG_LONG( C );
} }