Remove TTF Font charCode 65535 limit

This commit is contained in:
halx99 2024-10-29 06:53:23 +08:00 committed by GitHub
parent 53ec946592
commit 1e633a015d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 8 deletions

View File

@ -737,14 +737,7 @@ FontAtlas* FontFNT::newFontAtlas()
tempDefinition.rotated = _imageRotated;
// add the new definition
if (65535 < fontDef.charID)
{
AXLOGW("Warning: 65535 < fontDef.charID ({}), ignored", fontDef.charID);
}
else
{
tempAtlas->addLetterDefinition(fontDef.charID, tempDefinition);
}
tempAtlas->addLetterDefinition(fontDef.charID, tempDefinition);
}
// add the texture (only one texture for now)