mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-05 02:52:39 +08:00
Merge pull request #668 from zilongshanren/fix-multiple-bmfont-packer-issue
fix multiple bmfont packer rendering issue
This commit is contained in:
@@ -97,7 +97,7 @@ FontAtlas* FontAtlasCache::getFontAtlasFNT(const std::string& fntDataString,
|
||||
auto realFontFilename = spriteFrame->getTexture()->getPath();
|
||||
|
||||
char tmp[ATLAS_MAP_KEY_BUFFER];
|
||||
snprintf(tmp, ATLAS_MAP_KEY_BUFFER, "%.2f %.2f %s", imageOffset.x, imageOffset.y, realFontFilename.c_str());
|
||||
snprintf(tmp, ATLAS_MAP_KEY_BUFFER, "%.2f %.2f %s %p", imageOffset.x, imageOffset.y, realFontFilename.c_str(), spriteFrame);
|
||||
std::string atlasName = tmp;
|
||||
|
||||
auto it = _atlasMap.find(atlasName);
|
||||
|
||||
Reference in New Issue
Block a user