Skip to content

Commit

Permalink
Remove TTF Font charCode 65535 limit
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 authored Oct 28, 2024
1 parent 53ec946 commit 1e633a0
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions core/2d/FontFNT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1e633a0

Please sign in to comment.