Size size = Director::getInstance()->getVisibleSize();
cocos2d::ui::TextBMFont* textBMFont = cocos2d::ui::TextBMFont::create("BMFont","bitmapFontTest2 .fnt"); textBMFont->setPosition(Vec2(size.width /2,size.height/2)); this->addChild(textBMFont);