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;>setPosition(ccp((winSize.width - wrapSize.width) * 0.5f, (winSize.height - wrapSize.height) * 0.5f));
CCLayerColor* colorLayer = CCLayerColor::layerWithColorWidthHeight, wrapSize.width, wrapSize.height);
colorLayer
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)