Browse Source

text could have negative scale

dm 7 years ago
parent
commit
d8b7d4cf37
1 changed files with 2 additions and 0 deletions
  1. 2 0
      oxygine/src/oxygine/actor/TextField.cpp

+ 2 - 0
oxygine/src/oxygine/actor/TextField.cpp

@@ -286,6 +286,8 @@ namespace oxygine
             return _root;
 
 
+		globalScale = scalar::abs(globalScale);
+
         float scale = 1.0f;
         const Font* font = _style.font->getClosestFont(globalScale, _style.fontSize, scale);