Can use locale strings for parameters using a function when declaring the

intruction
This commit is contained in:
victorlevasseur
2015-02-15 13:19:46 +01:00
parent b869115e84
commit 35ecff341f
8 changed files with 71 additions and 4 deletions
+1 -1
View File
@@ -274,7 +274,7 @@ void RuntimeTextObject::ChangeFont(const std::string & fontName_)
{
if ( !text.getFont() || fontName_ != fontName )
{
fontName = utf8::ToLocaleString(fontName_); ///< TODO : Remove and find a way to tell if instructions want locale strings or utf8 strings
fontName = fontName_;
text.setFont(*FontManager::Get()->GetFont(fontName));
text.setOrigin(text.getLocalBounds().width/2, text.getLocalBounds().height/2);
OnPositionChanged();