#include <LabelTestNew.h>
◆ LabelFNTGlyphDesigner()
| LabelFNTGlyphDesigner::LabelFNTGlyphDesigner |
( |
| ) |
|
在文件 LabelTestNew.cpp 第 536 行定义.
538 auto winSize = Director::getInstance()->getWinSize();
540 auto layer = LayerColor::create(Color4B(128,128,128,255));
541 addChild(layer, -10);
543 auto label1 = Label::createWithBMFont(
"fonts/futura-48.fnt",
"Testing Glyph Designer");
546 FontAtlasCache::reloadFontAtlasFNT(
"fonts/futura-48.fnt");
547 label1->setBMFontFilePath(
"fonts/futura-48.fnt");
549 label1->setPosition(Vec2(winSize.width / 2, winSize.height * 0.4f));
551 auto label2 = Label::createWithBMFont(
"fonts/bitmapFontTest2.fnt",
"Hello World");
552 label2->setPosition(Vec2(winSize.width / 2, winSize.height * 0.6f));
◆ CREATE_FUNC()
◆ subtitle()
| std::string LabelFNTGlyphDesigner::subtitle |
( |
| ) |
const |
|
overridevirtual |
◆ title()
| std::string LabelFNTGlyphDesigner::title |
( |
| ) |
const |
|
overridevirtual |
该类的文档由以下文件生成:
- /Users/yujizhu/Documents/Git/cocos2d-x-4.0/tests/cpp-tests/Classes/LabelTest/LabelTestNew.h
- /Users/yujizhu/Documents/Git/cocos2d-x-4.0/tests/cpp-tests/Classes/LabelTest/LabelTestNew.cpp