ios - Cocos2d JS mixed font label -
in cocos2d js, can use labelttf
create label, , give font.
how can create mixed font labels, example, "this is my name".
1.) should able change color, font, , size of text. equivalent of in objective-c nsattributedstring.
2.) alternatively, can display html text in cocos2d-js.
thanks
there features these in works v4, there's not easy way.
you'll have create own class, internally keeps several labelttf
s, 1 each portion of differently formatted text, , sorts them within desired space.
good luck!
Comments
Post a Comment