summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2023-02-20 22:29:18 -0500
committerAlexei Podtelezhnikov <apodtele@gmail.com>2023-02-20 22:29:18 -0500
commitf5f969a8fe230a5355b62ebea45c91acf83e7645 (patch)
tree0c7f8d7e53e4452d4794c8d6dcd056f181d2a761
parentfecd19b449c5b8a5a3a935466df1e5a9c5bcc0bd (diff)
downloadfreetype2-f5f969a8fe230a5355b62ebea45c91acf83e7645.tar.gz
* src/sdf/ftsdf.c (get_min_distance_cubic): Fix C4701, typos.
-rw-r--r--src/sdf/ftsdf.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sdf/ftsdf.c b/src/sdf/ftsdf.c
index 26a6d00e4..d8479af10 100644
--- a/src/sdf/ftsdf.c
+++ b/src/sdf/ftsdf.c
@@ -2375,7 +2375,7 @@
* 90~degrees with the curve. We solve this with the Newton-Raphson
* method.
*
- * (7) We first assume an arbitary value of factor `t`, which we then
+ * (7) We first assume an arbitrary value of factor `t`, which we then
* improve.
*
* ```
@@ -2688,7 +2688,7 @@
* 90~degree with curve. We solve this with the Newton-Raphson
* method.
*
- * (7) We first assume an arbitary value of factor `t`, which we then
+ * (7) We first assume an arbitrary value of factor `t`, which we then
* improve.
*
* ```
@@ -2718,8 +2718,9 @@
FT_Error error = FT_Err_Ok;
- FT_26D6_Vec aA, bB, cC, dD; /* A, B, C in the above comment */
- FT_16D16_Vec nearest_point; /* point on curve nearest to `point` */
+ FT_26D6_Vec aA, bB, cC, dD; /* A, B, C, D in the above comment */
+ FT_16D16_Vec nearest_point = { 0, 0 };
+ /* point on curve nearest to `point` */
FT_16D16_Vec direction; /* direction of curve at `nearest_point` */
FT_26D6_Vec p0, p1, p2, p3; /* control points of a cubic curve */