LabelTTF cutting text along top

LabelTTF cutting text along top
0.0 0


Hi all,

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:, 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)


I notice that if I set the TextVAlignment to CENTER, that it disapears, so perhaps this is a bug with the Vertical alignment.