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 labelttfs, 1 each portion of differently formatted text, , sorts them within desired space.

good luck!


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -