Andela
November 27, 2013, 6:42am
#1
I use this construction (works good in iOS) in Android it anly shows the first 3 characters (no longer than the lenght when i create then label):
CCLabelBMFont* labelPoints = NULL;
labelPoints = (CCLabelBMFont*)this~~>getChildByTag;
if {
labelPoints = CCLabelBMFont::create;
labelPoints~~>setAlignment(kCCTextAlignmentCenter);
labelPoints~~>setPosition);
labelPoints~~>setScale(1.0);
this~~>addChild;
}
labelPoints~~>setString((CCString::createWithFormat(“Total Points: %d”,
totalPoints
))->getCString());
What am i doing wrong?
zhangxm
November 27, 2013, 9:14am
#2
What’s the engine version you used?
Andela
November 27, 2013, 2:00pm
#3
Android 2.3.6 Samsung GT-I9001 cocos2d-x 2.1.0
I will check the latest version 2.2.1
Andela
November 28, 2013, 7:40am
#4
In the latest version 2.2.1 i have the same problem.
Can you provide some related files about ravie35. fnt ?
Andela
November 28, 2013, 9:09pm
#6
I send you the HD and SD version….
I used the font file you gave in the LableTest/CCLabelBMFont.The code as follow:
@
CCLabelBMFont* labelPoints = CCLabelBMFont::create(“…”, “fonts/ravie35.fnt”);
labelPoints~~>setAlignment;
labelPoints~~>setPosition(ccp(160,70));
labelPoints~~>setScale;
addChild;
labelPoints~~>setString(CCString::createWithFormat(“Total Points: %d”,18888)->getCString());
@
the display as follow:
I used HTC g17 and android system version is 4.0.3 based on the latest version 2.2.1.
Andela
November 29, 2013, 6:39am
#9
In the attached image left the Samsung and right de iPhone 5.
I will use work arround of bug 3098…
Got a one star review on (different app Same construction) Optimus L3 (e0) i think it is the same problem on that device.
https://play.google.com/store/apps/details?id=eu.andela.apptafels3
I use samsung 9100 to test ,but also not met what you said problems.Which sammsung model are you use?
I also use the samsung Note2.
Andela
November 29, 2013, 11:53am
#12
I use:
Samsung
Model nummer: GT-I9001
Firmware versie: 2.3.6
Kernel versie: 2.6.35.7-perf
Buildnummer:GINGERBREAD.XXKQE
Going try to debug this weekend…