LabelTTF - underlined text

LabelTTF - underlined text
0.0 0



is there any way that i can add a underline to a LabelTTF or fake it?


You need to CCLabelBMFont.

Or if you want to fake it then add 1x1 pixel sprite and scale its X component based on CCLabelTTF width.


I use …

auto txt = LabelTTF::create(“Some Text”, …);
txt->setPosition( Point( text, position) );

auto underline = LabelTTF::create("____", …);
underline->sePosition( txt->getPosition() );