My english is not good,but i hope to get the reason for this problem correctly!
- I user BMFont to create fnt and png,and i use them in my project
auto labelss = Label::createWithBMFont(“fonts/h.fnt”, “中国”);
labelss->setAnchorPoint(Point::ANCHOR_MIDDLE);
labelss->setPosition(Point(0,480));
this->addChild(labelss);
but it failed. and tips:
WARNING: can’t find letter definition in font file for letter: ?
WARNING: can’t find letter definition in font file for letter: ?
WARNING: can’t find letter definition in font file for letter: *
WARNING: can’t find letter definition in font file for letter: ?
so i see the TestCPP . and put its resources to my resources,alter my code:
auto labelss = Label::createWithBMFont(“fonts/bitmapFontChinese.fnt”, “中国”);
labelss->setAnchorPoint(Point::ANCHOR_MIDDLE);
labelss->setPosition(Point(0,480));
this->addChild(labelss);
it failed,too. and tips is the same.
So i dont know what the problem is. I need your help,friends!