Cleanup: Fix various spelling errors

This commit is contained in:
Jonathan G Rennison
2025-02-12 17:18:02 +00:00
committed by rubidium42
parent 4d0682d034
commit d06b371254
76 changed files with 132 additions and 132 deletions

View File

@@ -196,7 +196,7 @@ static CTRunDelegateCallbacks _sprite_font_callback = {
for (ssize_t c = last; c < position; c++) {
if (buff[c] >= SCC_SPRITE_START && buff[c] <= SCC_SPRITE_END && font->fc->MapCharToGlyph(buff[c], false) == 0) {
CFAutoRelease<CTRunDelegateRef> del(CTRunDelegateCreate(&_sprite_font_callback, (void *)(size_t)(buff[c] | (font->fc->GetSize() << 24))));
/* According to the offical documentation, if a run delegate is used, the char should always be 0xFFFC. */
/* According to the official documentation, if a run delegate is used, the char should always be 0xFFFC. */
CFAttributedStringReplaceString(str.get(), CFRangeMake(c, 1), replacment_str.get());
CFAttributedStringSetAttribute(str.get(), CFRangeMake(c, 1), kCTRunDelegateAttributeName, del.get());
}