Browse Source

Merge remote-tracking branch 'origin/master'

dmuratshin 9 years ago
parent
commit
f55160b6d8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/ResFontFT.cpp

+ 2 - 0
src/ResFontFT.cpp

@@ -316,6 +316,8 @@ namespace oxygine
     const oxygine::Font* ResFontFT::getClosestFont(float worldScale, int styleFontSize, float& resScale) const
     {
         int fontSize = styleFontSize * worldScale;
+        if (!fontSize)
+            return 0;
         if (fontSize > FT_SNAP_SIZE)
         {
             int x = fontSize + FT_SNAP_SIZE - 1;