mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-22 10:05:37 -04:00
Can use locale strings for parameters using a function when declaring the
intruction
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user