Hello everyone,
I’ve just replaced LabelTTFs with New Labels, but when I use it with glyphs, I met a problem.
auto label = Label::createWithTTF("abcd", FONT, 48, 0, TextHAlignment::LEFT, GlyphCollection::CUSTOM, "abcd");
label->setPosition(Point(400, 400));
this->addChild(label);
label = Label::createWithTTF("efgh", FONT, 48, 0, TextHAlignment::LEFT, GlyphCollection::CUSTOM, "efgh");
label->setPosition(Point(400, 100));
this->addChild(label);
But I saw only ‘abcd’ are displayed, ‘efgh’ did not appear. In the console it says:
cocos2d-x debug info [WARNING: can't find letter definition in font file for letter: e] cocos2d-x debug info [WARNING: can't find letter definition in font file for letter: f] cocos2d-x debug info [WARNING: can't find letter definition in font file for letter: g] cocos2d-x debug info [WARNING: can't find letter definition in font file for letter: h]
It seems that it’s a problem with the glyphs. I use the label to display Chinese characters so I have to ue the glyphs. What should I do?