From 5cd2e2299f98065fa06c192df4dfb2c014b2b253 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 3 Nov 2021 13:08:39 +0800 Subject: *font --- Runtime/GUI/UITextMesh.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Runtime/GUI/UITextMesh.cpp') 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; -- cgit v1.1-26-g67d0