Different result of CCLabelTTF Android and win

Different result of CCLabelTTF Android and win
0.0 0


if I create CCLabelTTF with CCLabelTTF::initWithString(const char**, CCSize, CCTextAlignment, const char**, float) and CCSize has both parametres set (for limiting label), the win version has text centered vertically but android version not (see screen shots).

Testing code:
CCSize wrapSize(200, 75);
CCSize winSize = CCDirector::sharedDirector()>getWinSize;
CCLayerColor* colorLayer = CCLayerColor::layerWithColorWidthHeight, wrapSize.width, wrapSize.height);
>setPosition(ccp((winSize.width - wrapSize.width) * 0.5f, (winSize.height - wrapSize.height) * 0.5f));
CCLabelTTF* testLabel = CCLabelTTF::labelWithString;
testLabel~~>setAnchorPoint(ccp(0, 0));

Screen shots:

CCLabelTTF_win32.png (19.3 KB)

CCLabelTTF_android.png (7.3 KB)


Thanks Milda Genius.

I have reproduced it and created an issue #724 to track this problem.

If we fix it, I will reply you ASAP.


hi, Milda Genius, this issue was sloved. It will work in V0.9.2.



Its working.