diff --git a/src/hb-blob.cc b/src/hb-blob.cc index 4cf6d1e54..804601258 100644 --- a/src/hb-blob.cc +++ b/src/hb-blob.cc @@ -222,7 +222,7 @@ hb_blob_reference (hb_blob_t *blob) * hb_blob_destroy: (skip) * @blob: a blob. * - * Descreases the reference count on @blob, and if it reaches zero, destroys + * Decreases the reference count on @blob, and if it reaches zero, destroys * @blob, freeing all memory, possibly calling the destroy-callback the blob * was created for if it has not been called already. * diff --git a/src/hb-buffer-private.hh b/src/hb-buffer-private.hh index 9148ef31b..a72376de5 100644 --- a/src/hb-buffer-private.hh +++ b/src/hb-buffer-private.hh @@ -93,7 +93,7 @@ struct hb_buffer_t { hb_buffer_flags_t flags; /* BOT / EOT / etc. */ hb_buffer_cluster_level_t cluster_level; hb_codepoint_t replacement; /* U+FFFD or something else. */ - hb_buffer_scratch_flags_t scratch_flags; /* Have space-flallback, etc. */ + hb_buffer_scratch_flags_t scratch_flags; /* Have space-fallback, etc. */ unsigned int max_len; /* Maximum allowed len. */ int max_ops; /* Maximum allowed operations. */ diff --git a/src/hb-common.cc b/src/hb-common.cc index 1d0e72642..d1fcf799a 100644 --- a/src/hb-common.cc +++ b/src/hb-common.cc @@ -879,7 +879,7 @@ parse_feature_value_postfix (const char **pp, const char *end, hb_feature_t *fea parse_bool (pp, end, &feature->value); /* CSS doesn't use equal-sign between tag and value. * If there was an equal-sign, then there *must* be a value. - * A value without an eqaul-sign is ok, but not required. */ + * A value without an equal-sign is ok, but not required. */ return !had_equal || had_value; } diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc index 905c9f76a..255f20530 100644 --- a/src/hb-coretext.cc +++ b/src/hb-coretext.cc @@ -1218,7 +1218,7 @@ resize_and_retry: } /* Mac OS 10.6 doesn't have kCTTypesetterOptionForcedEmbeddingLevel, - * or if it does, it doesn't resepct it. So we get runs with wrong + * or if it does, it doesn't respect it. So we get runs with wrong * directions. As such, disable the assert... It wouldn't crash, but * cursoring will be off... * diff --git a/src/hb-directwrite.cc b/src/hb-directwrite.cc index 0674ef9bc..5429255ad 100644 --- a/src/hb-directwrite.cc +++ b/src/hb-directwrite.cc @@ -370,7 +370,7 @@ public: { if (textPosition == 0 || textPosition > mTextLength) { // Either there is no text before here (== 0), or this - // is an invalid position. The query is considered valid thouh. + // is an invalid position. The query is considered valid though. *textString = nullptr; *textLength = 0; } diff --git a/src/hb-ft.cc b/src/hb-ft.cc index 1c526cf37..fc4b11220 100644 --- a/src/hb-ft.cc +++ b/src/hb-ft.cc @@ -58,7 +58,7 @@ * * - In the future, we should add constructors to create fonts in font space? * - * - FT_Load_Glyph() is exteremely costly. Do something about it? + * - FT_Load_Glyph() is extremely costly. Do something about it? */ diff --git a/src/hb-graphite2.cc b/src/hb-graphite2.cc index 62aaae9e8..3b55b475b 100644 --- a/src/hb-graphite2.cc +++ b/src/hb-graphite2.cc @@ -80,7 +80,7 @@ static const void *hb_graphite2_get_table (const void *data, unsigned int tag, s p->tag = tag; /* TODO Not thread-safe, but fairly harmless. - * We can do the double-chcked pointer cmpexch thing here. */ + * We can do the double-checked pointer cmpexch thing here. */ p->next = face_data->tlist; face_data->tlist = p; } diff --git a/src/hb-ot-layout-common-private.hh b/src/hb-ot-layout-common-private.hh index 31c436a09..8bf69a37f 100644 --- a/src/hb-ot-layout-common-private.hh +++ b/src/hb-ot-layout-common-private.hh @@ -299,7 +299,7 @@ struct FeatureParamsSize * better. * * Assume that the offset to the size feature is according to specification, - * and make the following value checks. If it fails, assume the the size + * and make the following value checks. If it fails, assume the size * feature is calculated as versions of MakeOTF before the AFDKO 2.0 built it. * If this fails, reject the 'size' feature. The older makeOTF's calculated the * offset from the beginning of the FeatureList table, rather than from the