Skip to content

Instantly share code, notes, and snippets.

@luzpaz
Created July 10, 2021 23:18
Show Gist options
  • Save luzpaz/d0bf1a210ed1e2ddca1b986105a4f0f9 to your computer and use it in GitHub Desktop.
Save luzpaz/d0bf1a210ed1e2ddca1b986105a4f0f9 to your computer and use it in GitHub Desktop.
From 63107a4d7679a805ec494596597727d0624f02c9 Mon Sep 17 00:00:00 2001
From: luz paz <luzpaz@github.com>
Date: Sat, 10 Jul 2021 19:05:32 -0400
Subject: [PATCH] Fix various typos
Found via ./src/autofit/aflatin.c:1697: inbetween ==> between, in between
./src/autofit/afhints.c:1056: inbetween ==> between, in between
./src/pshinter/pshalgo.c:805: inbetween ==> between, in between
./src/gxvalid/gxvjust.c:252: Threshhold ==> Threshold
./src/pfr/pfrload.c:291: acount ==> account
./src/pfr/pfrload.c:321: acount ==> account
./src/pfr/pfrload.h:93: acount ==> account
./src/gzip/infutil.h:72: LOADIN ==> LOADING
./src/gzip/infutil.h:85: LOADIN ==> LOADING
./src/gzip/infblock.c:42: Similarily ==> Similarly
./src/gzip/zlib.h:649: creat ==> create
./docs/CHANGES:286: interator ==> iterator
./docs/CHANGES:3717: UNX ==> UNIX
./docs/CHANGES:4298: statics ==> statistics
./builds/exports.mk:37: TE ==> THE, BE, WE, TO
./builds/exports.mk:38: TE ==> THE, BE, WE, TO
./builds/exports.mk:39: TE ==> THE, BE, WE, TO
./builds/exports.mk:58: TE ==> THE, BE, WE, TO
./builds/compiler/bcc.mk:56: TE ==> THE, BE, WE, TO
./builds/compiler/intelc.mk:56: Fo ==> Of, for
./builds/compiler/intelc.mk:57: TE ==> THE, BE, WE, TO
./builds/compiler/bcc-dev.mk:56: TE ==> THE, BE, WE, TO
./builds/compiler/visualc.mk:56: Fo ==> Of, for
./builds/compiler/visualc.mk:60: TE ==> THE, BE, WE, TO
./builds/compiler/visualage.mk:56: Fo ==> Of, for
./builds/atari/FNames.SIC:5: ordner ==> order
./builds/atari/FNames.SIC:6: ordner ==> order
./builds/atari/FNames.SIC:6: ist ==> is, it, its, it's, sit, list
./builds/atari/FNames.SIC:6: Ordner ==> Order
./builds/atari/FNames.SIC:8: ordner ==> order
---
ChangeLog | 2 +-
builds/cmake/FindHarfBuzz.cmake | 4 ++--
builds/vms/vmslib.dat | 2 +-
builds/wince/vc2005-ce/freetype.sln | 2 +-
builds/windows/ftdebug.c | 2 +-
docs/markdown/javascripts/extra.js | 2 +-
include/freetype/ftcolor.h | 4 ++--
include/freetype/internal/fttrace.h | 2 +-
include/freetype/internal/sfnt.h | 4 ++--
src/autofit/afcjk.c | 2 +-
src/autofit/aflatin.c | 2 +-
src/base/ftdebug.c | 2 +-
src/base/ftsynth.c | 2 +-
src/raster/ftraster.c | 2 +-
src/sdf/ftbsdf.c | 4 ++--
src/sdf/ftsdf.c | 6 +++---
src/sdf/ftsdf.h | 2 +-
17 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 1a96a55d0..622cf6078 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2645,7 +2645,7 @@
[raster] Tune SMART macro (#58352).
Windows seems to perform smart dropout control at 26.6 precision.
- To mimick Windows independent of increased precision, we need to tweak
+ To mimic Windows independent of increased precision, we need to tweak
the macro so that some close calls break down rather than up.
* src/raster/ftraster.c (SMART): Tweak the macro.
diff --git a/builds/cmake/FindHarfBuzz.cmake b/builds/cmake/FindHarfBuzz.cmake
index b481fa415..0f0e33a1a 100644
--- a/builds/cmake/FindHarfBuzz.cmake
+++ b/builds/cmake/FindHarfBuzz.cmake
@@ -28,8 +28,8 @@
# Try to find Harfbuzz include and library directories.
#
# After successful discovery, this will set for inclusion where needed:
-# HarfBuzz_INCLUDE_DIRS - containg the HarfBuzz headers
-# HarfBuzz_LIBRARIES - containg the HarfBuzz library
+# HarfBuzz_INCLUDE_DIRS - containing the HarfBuzz headers
+# HarfBuzz_LIBRARIES - containing the HarfBuzz library
#[=======================================================================[.rst:
FindHarfBuzz
diff --git a/builds/vms/vmslib.dat b/builds/vms/vmslib.dat
index 4c817da44..ae921178f 100644
--- a/builds/vms/vmslib.dat
+++ b/builds/vms/vmslib.dat
@@ -19,7 +19,7 @@
! might look like. They are site specific and the locations of the
! library and include files need almost certainly to be changed.
!
-! Location: All of the libaries can be found at the following addresses
+! Location: All of the libraries can be found at the following addresses
!
! ZLIB: http://www.decus.de:8080/www/vms/sw/zlib.htmlx
!
diff --git a/builds/wince/vc2005-ce/freetype.sln b/builds/wince/vc2005-ce/freetype.sln
index ff4546388..62c6a657b 100644
--- a/builds/wince/vc2005-ce/freetype.sln
+++ b/builds/wince/vc2005-ce/freetype.sln
@@ -146,7 +146,7 @@ Global
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.LIB Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.LIB Release|Windows Mobile 6 Professional SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 6 Professional SDK (ARMV4I)
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.LIB Release|Windows Mobile 6 Professional SDK (ARMV4I).Build.0 = Release|Windows Mobile 6 Professional SDK (ARMV4I)
- {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.LIB Releaase|Windows Mobile 6 Professional SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 6 Professional SDK (ARMV4I)
+ {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.LIB Release|Windows Mobile 6 Professional SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 6 Professional SDK (ARMV4I)
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.LIB Release|Windows Mobile 6 Standard SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 6 Standard SDK (ARMV4I)
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.LIB Release|Windows Mobile 6 Standard SDK (ARMV4I).Build.0 = Release|Windows Mobile 6 Standard SDK (ARMV4I)
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.LIB Release|Windows Mobile 6 Standard SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 6 Standard SDK (ARMV4I)
diff --git a/builds/windows/ftdebug.c b/builds/windows/ftdebug.c
index a1aedb8e0..3a7dd217b 100644
--- a/builds/windows/ftdebug.c
+++ b/builds/windows/ftdebug.c
@@ -64,7 +64,7 @@
* with the actual log message if set to true.
*
* 5. The flag `ft_timestamp_flag` prints time along with the actual log
- * message if set to ture.
+ * message if set to true.
*
* 6. `ft_have_newline_char` is used to differentiate between a log
* message with and without a trailing newline character.
diff --git a/docs/markdown/javascripts/extra.js b/docs/markdown/javascripts/extra.js
index 00f167089..b1ce774fa 100644
--- a/docs/markdown/javascripts/extra.js
+++ b/docs/markdown/javascripts/extra.js
@@ -1,5 +1,5 @@
/*
-Internal link topbar offest adjust Javascript
+Internal link topbar offset adjust Javascript
Code provided by @makshh on GitHub
Bug report on material-mkdocs
diff --git a/include/freetype/ftcolor.h b/include/freetype/ftcolor.h
index 59e6f15e3..4c9c7d0f2 100644
--- a/include/freetype/ftcolor.h
+++ b/include/freetype/ftcolor.h
@@ -475,7 +475,7 @@ FT_BEGIN_HEADER
* extensions to the 'COLR' table, see
* 'https://github.com/googlefonts/colr-gradients-spec'.
*
- * The enumeration values losely correspond with the format numbers of
+ * The enumeration values loosely correspond with the format numbers of
* the specification: FreeType always returns a fully specified 'Paint'
* structure for the 'Transform', 'Translate', 'Scale', 'Rotate', and
* 'Skew' table types even though the specification has different formats
@@ -1586,7 +1586,7 @@ FT_BEGIN_HEADER
*
* @return:
* Value~1 if everything is OK. Value~0 if no details can be found for
- * this paint or any other error occured.
+ * this paint or any other error occurred.
*
* @since:
* 2.11 -- **currently experimental only!** There might be changes
diff --git a/include/freetype/internal/fttrace.h b/include/freetype/internal/fttrace.h
index 2ed205ea4..2bbee129b 100644
--- a/include/freetype/internal/fttrace.h
+++ b/include/freetype/internal/fttrace.h
@@ -19,7 +19,7 @@
/* definitions of trace levels for FreeType 2 */
/* the maximum string length (if the argument to `FT_TRACE_DEF` */
- /* gets used as a string) plus one charachter for ':' plus */
+ /* gets used as a string) plus one character for ':' plus */
/* another one for the trace level */
#define FT_MAX_TRACE_LEVEL_LENGTH (9 + 1 + 1)
diff --git a/include/freetype/internal/sfnt.h b/include/freetype/internal/sfnt.h
index 438ec897e..ed2be2369 100644
--- a/include/freetype/internal/sfnt.h
+++ b/include/freetype/internal/sfnt.h
@@ -642,7 +642,7 @@ FT_BEGIN_HEADER
*
* @return:
* Value~1 if everything is OK. Value~0 if no details can be found for
- * this paint or any other error occured.
+ * this paint or any other error occurred.
*/
typedef FT_Bool
( *TT_Get_Paint_Func )( TT_Face face,
@@ -743,7 +743,7 @@ FT_BEGIN_HEADER
* corresponding (1,0) Apple entry.
*
* @return:
- * 1 if there is either a win or apple entry (or both), 0 otheriwse.
+ * 1 if there is either a win or apple entry (or both), 0 otherwise.
*/
typedef FT_Bool
(*TT_Get_Name_ID_Func)( TT_Face face,
diff --git a/src/autofit/afcjk.c b/src/autofit/afcjk.c
index ba15f2c55..1fd57b187 100644
--- a/src/autofit/afcjk.c
+++ b/src/autofit/afcjk.c
@@ -1376,7 +1376,7 @@
}
- /* Initalize hinting engine. */
+ /* Initialize hinting engine. */
FT_LOCAL_DEF( FT_Error )
af_cjk_hints_init( AF_GlyphHints hints,
diff --git a/src/autofit/aflatin.c b/src/autofit/aflatin.c
index 8ca6ac29d..5afa7dbd2 100644
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -2611,7 +2611,7 @@
}
- /* Initalize hinting engine. */
+ /* Initialize hinting engine. */
static FT_Error
af_latin_hints_init( AF_GlyphHints hints,
diff --git a/src/base/ftdebug.c b/src/base/ftdebug.c
index bf4018652..4c33917ed 100644
--- a/src/base/ftdebug.c
+++ b/src/base/ftdebug.c
@@ -64,7 +64,7 @@
* with the actual log message if set to true.
*
* 5. The flag `ft_timestamp_flag` prints time along with the actual log
- * message if set to ture.
+ * message if set to true.
*
* 6. `ft_have_newline_char` is used to differentiate between a log
* message with and without a trailing newline character.
diff --git a/src/base/ftsynth.c b/src/base/ftsynth.c
index 73565b130..de28def58 100644
--- a/src/base/ftsynth.c
+++ b/src/base/ftsynth.c
@@ -123,7 +123,7 @@
/*
* XXX: overflow check for 16-bit system, for compatibility
* with FT_GlyphSlot_Embolden() since FreeType 2.1.10.
- * unfortunately, this function return no informations
+ * unfortunately, this function return no information
* about the cause of error.
*/
if ( ( ystr >> 6 ) > FT_INT_MAX || ( ystr >> 6 ) < FT_INT_MIN )
diff --git a/src/raster/ftraster.c b/src/raster/ftraster.c
index fbcf8d22a..3a35f2e9d 100644
--- a/src/raster/ftraster.c
+++ b/src/raster/ftraster.c
@@ -441,7 +441,7 @@
(Bool)( x - FLOOR( x ) >= ras.precision_half )
/* Smart dropout rounding to find which pixel is closer to span ends. */
- /* To mimick Windows, symmetric cases break down indepenently of the */
+ /* To mimic Windows, symmetric cases break down independently of the */
/* precision. */
#define SMART( p, q ) FLOOR( ( (p) + (q) + ras.precision * 63 / 64 ) >> 1 )
diff --git a/src/sdf/ftbsdf.c b/src/sdf/ftbsdf.c
index db4a2dd11..ddf75d588 100644
--- a/src/sdf/ftbsdf.c
+++ b/src/sdf/ftbsdf.c
@@ -373,7 +373,7 @@
* @Input:
* current ::
* Array of Euclidean distances. `current` must point to the position
- * for which the distance is to be caculated. We treat this array as
+ * for which the distance is to be calculated. We treat this array as
* a two-dimensional array mapped to a one-dimensional array.
*
* x ::
@@ -550,7 +550,7 @@
*
* @Description:
* Loops over all the pixels and call `compute_edge_distance` only for
- * edge pixels. This maked the process a lot faster since
+ * edge pixels. This makes the process a lot faster since
* `compute_edge_distance` uses functions such as `FT_Vector_NormLen',
* which are quite slow.
*
diff --git a/src/sdf/ftsdf.c b/src/sdf/ftsdf.c
index 65a8f329c..8ba18fab6 100644
--- a/src/sdf/ftsdf.c
+++ b/src/sdf/ftsdf.c
@@ -2325,7 +2325,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.
*
* ```
@@ -2637,7 +2637,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.
*
* ```
@@ -3399,7 +3399,7 @@
* A complete shape which is used to generate SDF.
*
* spread ::
- * Maximum distances to be allowed inthe output bitmap.
+ * Maximum distances to be allowed in the output bitmap.
*
* @Output:
* bitmap ::
diff --git a/src/sdf/ftsdf.h b/src/sdf/ftsdf.h
index 187b418af..17ca644c9 100644
--- a/src/sdf/ftsdf.h
+++ b/src/sdf/ftsdf.h
@@ -57,7 +57,7 @@ FT_BEGIN_HEADER
* indicate positions inside of contours.
*
* flip_y ::
- * Setting this parameter to true maked the output image flipped
+ * Setting this parameter to true makes the output image flipped
* along the y-axis.
*
* overlaps ::
--
2.32.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment