Different result of CCLabelTTF Android and win

Hello,
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);
colorLayer
>setPosition(ccp((winSize.width - wrapSize.width) * 0.5f, (winSize.height - wrapSize.height) * 0.5f));
this~~>addChild;
CCLabelTTF* testLabel = CCLabelTTF::labelWithString;
testLabel~~>setAnchorPoint(ccp(0, 0));
colorLayer->addChild(testLabel);

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.

Thanks.

Its working.