Update Label.cpp (#1353)

This commit is contained in:
Turky Mohammed 2023-09-25 15:23:28 +03:00 committed by GitHub
parent 50138ac20e
commit 87313eb043
1 changed files with 1 additions and 1 deletions

View File

@ -3043,7 +3043,7 @@ void Label::recordLetterInfo(const ax::Vec2& point, char32_t utf32Char, int lett
} }
_lettersInfo[letterIndex].lineIndex = lineIndex; _lettersInfo[letterIndex].lineIndex = lineIndex;
_lettersInfo[letterIndex].utf32Char = utf32Char; _lettersInfo[letterIndex].utf32Char = utf32Char;
_lettersInfo[letterIndex].valid = _fontAtlas->_letterDefinitions[utf32Char].validDefinition; _lettersInfo[letterIndex].valid = _fontAtlas->_letterDefinitions[utf32Char].validDefinition && utf32Char != ' ';
_lettersInfo[letterIndex].positionX = point.x; _lettersInfo[letterIndex].positionX = point.x;
_lettersInfo[letterIndex].positionY = point.y; _lettersInfo[letterIndex].positionY = point.y;
_lettersInfo[letterIndex].atlasIndex = -1; _lettersInfo[letterIndex].atlasIndex = -1;