summaryrefslogtreecommitdiff
path: root/Runtime/GUI/UITextMesh.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/GUI/UITextMesh.cpp')
-rw-r--r--Runtime/GUI/UITextMesh.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/Runtime/GUI/UITextMesh.cpp b/Runtime/GUI/UITextMesh.cpp
index 32dec3b..823335f 100644
--- a/Runtime/GUI/UITextMesh.cpp
+++ b/Runtime/GUI/UITextMesh.cpp
@@ -75,16 +75,19 @@ UITextMesh::UITextMesh(const UnicodeString& str, Font* font,int pixelSize, EText
continue;
unsigned int atlasIndex = ch->atlas;
- TextInfo info;
- info.ch = ch;
- info.offset = offset;
+ if (atlasIndex != FONT_NOT_IN_ATLAS_PLACEHOLDER) //·Ç¿Õ¸ñ
+ {
+ TextInfo info;
+ info.ch = ch;
+ info.offset = offset;
- auto list = s_TextInfos.find(atlasIndex);
- if (list == s_TextInfos.end())
- s_TextInfos.insert(std::pair<unsigned int, vector<TextInfo>>(atlasIndex, vector<TextInfo>()));
+ auto list = s_TextInfos.find(atlasIndex);
+ if (list == s_TextInfos.end())
+ s_TextInfos.insert(std::pair<unsigned int, vector<TextInfo>>(atlasIndex, vector<TextInfo>()));
- vector<TextInfo>& v = s_TextInfos[atlasIndex];
- v.push_back(info);
+ vector<TextInfo>& v = s_TextInfos[atlasIndex];
+ v.push_back(info);
+ }
offset += ch->advance;
}