[email protected] 8 years ago
parent
commit
2d1d9dbf16
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/ResFontFT.cpp

+ 4 - 0
src/ResFontFT.cpp

@@ -299,6 +299,10 @@ namespace oxygine
 
     Font* ResFontFT::getFont(int size)
     {
+        OX_ASSERT(size >= 0);
+        if (size <= 0)
+            size = 10;
+
         for (fonts::iterator i = _fonts.begin(); i != _fonts.end(); ++i)
         {
             FontFT& f = *i;