|
|
@@ -72,18 +72,13 @@ namespace oxygine
|
|
|
return _sdf;
|
|
|
}
|
|
|
|
|
|
- void ResFontBM::alignSize(float scale, int fontSize, float& resScale, int& resFontSize) const
|
|
|
+ void ResFontBM::alignSize(float worldScale, int styleFontSize, float& resScale, int& resFontSize) const
|
|
|
{
|
|
|
- resFontSize = fontSize;
|
|
|
- resScale = scale;
|
|
|
+ resFontSize = styleFontSize;
|
|
|
+ resScale = worldScale;
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- //_scale = _font->getScale();
|
|
|
- //if (st.fontSize)
|
|
|
- // _scale = _font->getSize() / float(st.fontSize);
|
|
|
- if (fontSize)
|
|
|
- resScale = _font->getSize() / float(fontSize);
|
|
|
+ if (styleFontSize)
|
|
|
+ resScale = _font->getSize() / float(styleFontSize);
|
|
|
else
|
|
|
{
|
|
|
resFontSize = _font->getScale();
|