diff options
author | chai <chaifix@163.com> | 2021-11-03 13:08:39 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-03 13:08:39 +0800 |
commit | 5cd2e2299f98065fa06c192df4dfb2c014b2b253 (patch) | |
tree | 9878536091d2ef6657a79026dcc7b45a8eb091dd /Runtime/GUI/UITextMesh.cpp | |
parent | c10e0d92f46e5eaf25a69e1fafe5f4dbd8eaab9d (diff) |
*font
Diffstat (limited to 'Runtime/GUI/UITextMesh.cpp')
-rw-r--r-- | Runtime/GUI/UITextMesh.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Runtime/GUI/UITextMesh.cpp b/Runtime/GUI/UITextMesh.cpp index 6a10f88..32dec3b 100644 --- a/Runtime/GUI/UITextMesh.cpp +++ b/Runtime/GUI/UITextMesh.cpp @@ -71,6 +71,8 @@ UITextMesh::UITextMesh(const UnicodeString& str, Font* font,int pixelSize, EText { character::Codepoint c = str.str[i]; const Character* ch = font->GetCharacter(c, pixelSize); + if (ch == NULL) + continue; unsigned int atlasIndex = ch->atlas; TextInfo info; |