summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2020-12-26 10:50:21 +0100
committerWerner Lemberg <wl@gnu.org>2020-12-26 10:50:21 +0100
commitc6ff2556c8e6f3bb8370cf3f6113bf73a6d5d9a3 (patch)
tree430692b7f9d85a280af1a89c1d7d52e716ce9ba3
parentbca740d5667930017640e2111f1ea113951bf54d (diff)
downloadfreetype2-c6ff2556c8e6f3bb8370cf3f6113bf73a6d5d9a3.tar.gz
[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.
-rw-r--r--ChangeLog10
-rw-r--r--src/sdf/ftsdf.c14
-rw-r--r--src/truetype/ttinterp.c6
3 files changed, 20 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 37091fb67..106ef8488 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
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>
+
* src/base/ftobjs.c (pixel_modes): Updated.
2020-12-26 Anuj Verma <anujv@iitbhilai.ac.in>
diff --git a/src/sdf/ftsdf.c b/src/sdf/ftsdf.c
index 604ea4a4b..f7b405bc0 100644
--- a/src/sdf/ftsdf.c
+++ b/src/sdf/ftsdf.c
@@ -257,8 +257,8 @@
* SDF_ORIENTATION_CW ::
* Clockwise orientation (positive area covered).
*
- * SDF_ORIENTATION_ACW ::
- * Anti-clockwise orientation (negative area covered).
+ * SDF_ORIENTATION_CCW ::
+ * Counter-clockwise orientation (negative area covered).
*
* @Note:
* See @FT_Outline_Get_Orientation for more details.
@@ -268,7 +268,7 @@
{
SDF_ORIENTATION_NONE = 0,
SDF_ORIENTATION_CW = 1,
- SDF_ORIENTATION_ACW = 2
+ SDF_ORIENTATION_CCW = 2
} SDF_Contour_Orientation;
@@ -991,7 +991,7 @@
if ( area > 0 )
return SDF_ORIENTATION_CW;
else
- return SDF_ORIENTATION_ACW;
+ return SDF_ORIENTATION_CCW;
}
@@ -3568,7 +3568,7 @@
/* overloads the default sign of the outside */
/* pixels, which is necessary for */
/* counter-clockwise contours. */
- if ( orientations[i] == SDF_ORIENTATION_ACW &&
+ if ( orientations[i] == SDF_ORIENTATION_CCW &&
internal_params.orientation == FT_ORIENTATION_FILL_RIGHT )
internal_params.overload_sign = 1;
else if ( orientations[i] == SDF_ORIENTATION_CW &&
@@ -3608,8 +3608,8 @@
if ( internal_params.orientation == FT_ORIENTATION_FILL_LEFT )
{
if ( orientations[i] == SDF_ORIENTATION_CW )
- orientations[i] = SDF_ORIENTATION_ACW;
- else if ( orientations[i] == SDF_ORIENTATION_ACW )
+ orientations[i] = SDF_ORIENTATION_CCW;
+ else if ( orientations[i] == SDF_ORIENTATION_CCW )
orientations[i] = SDF_ORIENTATION_CW;
}
diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c
index 192377466..7a0268c91 100644
--- a/src/truetype/ttinterp.c
+++ b/src/truetype/ttinterp.c
@@ -4362,7 +4362,7 @@
if ( ( opcode & 1 ) != 0 )
{
- C = B; /* counter clockwise rotation */
+ C = B; /* counter-clockwise rotation */
B = A;
A = NEG_LONG( C );
}
@@ -5050,7 +5050,7 @@
if ( ( opcode & 1 ) != 0 )
{
- C = B; /* counter clockwise rotation */
+ C = B; /* counter-clockwise rotation */
B = A;
A = NEG_LONG( C );
}
@@ -5074,7 +5074,7 @@
if ( ( opcode & 1 ) != 0 )
{
- C = B; /* counter clockwise rotation */
+ C = B; /* counter-clockwise rotation */
B = A;
A = NEG_LONG( C );
}