| 3365 | } |
| 3366 | |
| 3367 | LabelCharMapFontTest::LabelCharMapFontTest() |
| 3368 | { |
| 3369 | _label->setLineSpacing(5); |
| 3370 | _label->setVerticalAlignment(TextVAlignment::CENTER); |
| 3371 | _label->setOverflow(Label::Overflow::NONE); |
| 3372 | _label->setCharMap("fonts/tuffy_bold_italic-charmap.plist"); |
| 3373 | _label->setString("Hello World, This is a char map test."); |
| 3374 | _label->setScale(0.5f); |
| 3375 | |
| 3376 | auto stepper = (ControlStepper*)this->getChildByName("stepper"); |
| 3377 | stepper->setEnabled(true); |
| 3378 | |
| 3379 | auto checkbox = (CheckBox*)(this->getChildByName("toggleType")); |
| 3380 | checkbox->setEnabled(false); |
| 3381 | |
| 3382 | this->updateDrawNodeSize(_label->getContentSize()); |
| 3383 | } |
| 3384 | |
| 3385 | std::string LabelCharMapFontTest::title() const |
| 3386 | { |
nothing calls this directly
no test coverage detected