Hello,
I have been using Cocos2d-X V3.1 and V3.2 RC0 and have some problems with the Labels.
I am using TTF fonts so from what I understand I should be using Label::createWithTTF to create my Labels as follows :
Label* versionLabel = Label::createWithTTF("Version 1.2.3 Debug","fonts/Marker Felt.ttf" , 28);
versionLabel->setPosition( Vec2(705,145) );
versionLabel->setColor(Color3B(240,137,14));
versionLabel->setAnchorPoint(Vec2(0,0.5));
this->addChild(versionLabel);
But by doing this the fonts are slightly cut :
Here is another example with Thonburi :
I have tried using different function :
Label* versionLabel2 = Label::create("Version 1.2.3 Debug","Marker Felt" , 28);
LabelTTF* versionLabel3 = LabelTTF::create("Version 1.2.3 Debug","Marker Felt" , 28);
Label* versionLabel4 = Label::createWithSystemFont("Version 1.2.3 Debug","fonts/Marker Felt.ttf" , 28);
But by doing this I am stuck with an outline:
I have tried using on Label
versionLabel->disableEffect();
versionLabel->updateContent();
And on LabelTTF :
versionLabel3->disableShadow(true);
versionLabel3->disableStroke(true);
But this does not change anything there is still an outline or shadow on the font.
Is this a bug or am I doing something wrong ?
Thank you for any help.