I'm trying to set value of a label in cocos2d-x. It's not showing spaces if I add them on start or end of string, like
label->setString("10 10");
working correctly. But if I use
label->setString(" 10");
label->setString("10 ");
it only show "10" , spaces are trimmed.