auto a = MenuItemFont::create(“A”);
a->setFontNameObj(“fonts/disneyjuniorg.ttf”);
a->setFontSizeObj(200);
a->setPosition(200,200);
ios 平台上 MenuItemFont 设置字体无效,windows 平台确认可以,请确认此问题,谢谢!
auto a = MenuItemFont::create(“A”);
a->setFontNameObj(“fonts/disneyjuniorg.ttf”);
a->setFontSizeObj(200);
a->setPosition(200,200);
ios 平台上 MenuItemFont 设置字体无效,windows 平台确认可以,请确认此问题,谢谢!
字库打包进去没?
auto labelB = Label::createWithTTF(ttfConfig,“B” );
labelB->setPosition(602.5,424);
//this->addChild(labelB);
auto menuB = MenuItemLabel::create(labelB, CC_CALLBACK_1(LetterPracticeScene::btn_letter_Callback, this));
menuB->setTag(2);
打包进去了,我用MenuItemLabel 字体显示都正常了啊,你们可以自己试下,我是在3.3 RC0 版本,最近的3.3 最终版也测试有此问题,ios 和mac 都有问题 。
没有人有这样的问题吗?
已经解决,真心搞不懂为什么 MenuItemLabel 可以,而MenuItemFont 需要在xcode 里面进行设置