fix: typos (#4202)

Co-authored-by: Bart Louwers <bart@emeel.net>
This commit is contained in:
Mike Taves
2026-07-14 03:08:27 +12:00
committed by GitHub
parent 9d53ac53a6
commit fba652eb72
76 changed files with 100 additions and 97 deletions

View File

@@ -17,7 +17,7 @@ std::u16string applyArabicShaping(const std::u16string&);
// StyledText pairs each code point in a string with an integer indicating
// the styling options to use for rendering that code point
// The data structure is intended to accomodate the reordering/interleaving
// The data structure is intended to accommodate the reordering/interleaving
// of formatting that can happen when BiDi rearranges inputs
using StyledText = std::pair<std::u16string, std::vector<uint8_t>>;

View File

@@ -55,7 +55,7 @@ float CollisionIndex::approximateTileDistance(const TileDistance& tileDistance,
const float pixelsToTileUnits,
const float cameraToAnchorDistance,
const bool pitchWithMap) {
// This is a quick and dirty solution for chosing which collision circles to
// This is a quick and dirty solution for choosing which collision circles to
// use (since collision circles are laid out in tile units). Ideally, I
// think we should generate collision circles on the fly in viewport
// coordinates at the time we do collision detection.

View File

@@ -14,7 +14,7 @@
MapLibre Style Spec specifies locales with BCP 47
Android and Intl.Collator implementations speak BCP 47 out of the box
Darwin implementation requires translation to "Language Identifier"
We're OK with not supporting extensions, but we want to succesfully
We're OK with not supporting extensions, but we want to successfully
parse any valid BCP 47 tag and get out the base language/script/region.
Mozilla's version:

View File

@@ -222,7 +222,7 @@ SymbolQuads getGlyphQuads(const Shaping& shapedText,
for (const auto& positionedGlyph : line.positionedGlyphs) {
if (!positionedGlyph.rect.hasArea()) continue;
// The rects have an addditional buffer that is not included in their size;
// The rects have an additional buffer that is not included in their size;
const float glyphPadding = 1.0f;
float rectBuffer = 3.0f + glyphPadding;
float pixelRatio = 1.0f;

View File

@@ -371,7 +371,7 @@ std::set<std::size_t> determineLineBreaks(const TaggedString& logicalInput,
std::list<PotentialBreak> potentialBreaks;
float currentX = 0;
// Find first occurance of zero width space (ZWSP) character.
// Find first occurrence of zero width space (ZWSP) character.
const bool hasServerSuggestedBreaks = logicalInput.rawText().find_first_of(ZWSP) != std::string::npos;
for (std::size_t i = 0; i < logicalInput.length(); i++) {