https://www.cocos2d-x.org/download

Change Label font size

1
2
3
4
5
6
auto label = Label::createWithTTF("Your text", "helvetica.ttf", 28);

// later on
auto ttfConfig = label->getTTFConfig();
ttfConfig.fontSize = 40; // change to 40 point
label->setTTFConfig(ttfConfig);