I’m having some issues using the LabelTTF class in cocos2dx. Specifically, the text is being cut along the top. This is only an issue for Capital letters.
The code I use to initialise it is:
_title = LabelTTF::create(title.c_str(), "GROBOLD.ttf", 35);
Then I’m adding _title to be a child of a class (itself inheriting from Node), itself added to the HUD layer (class inheriting from Layer).
Where title is the string “CONGRATULATIONS” (see attached screen shot).
When googling this issue, I notice there was a bug fix on the HTML5 version of cocos2d, at: https://github.com/cocos2d/cocos2d-html5/pull/899, maybe this needs to be put into cocos2dx? Alternatively, do I need to do something else?
Thanks for your help!
Screen Shot 2013-09-18 at 12.22.48 PM.png (16.3 KB)