|
|
@@ -98,9 +98,15 @@ namespace oxygine
|
|
|
|
|
|
setTouchEnabled(false);
|
|
|
|
|
|
-
|
|
|
TextStyle st;
|
|
|
- st.font = resSystem->getResFont("system")->getFont();
|
|
|
+ st.font = NULL;
|
|
|
+
|
|
|
+ if (ResFont *fnt = resSystem->getResFont("system")) {
|
|
|
+ st.font = fnt->getFont();
|
|
|
+ }
|
|
|
+
|
|
|
+ OX_ASSERT(st.font != NULL);
|
|
|
+
|
|
|
st.vAlign = TextStyle::VALIGN_TOP;
|
|
|
//st.color = Color(rand()%255, rand()%255, rand()%255, 255);
|
|
|
st.color = Color(Color::Black, 255);
|