By https://github.com/happykevins/cocos2dx-ext
Thanks kevins.
- supprot cocos2d-x 2.2.5
- supprot ios 64bit
- support android
- support lua
- fix bugs
Extensions for Cocos2dx: Dynamic Font Management, HTML Widget, Powerful Asset Management...
- CCHTMLLabel Sample:
luaCode
create font:
FontFactory:instance():create_font("fontSizeBorder16", "fonts/FZYiHei-M20S.ttf", 0xffffffff, 16, e_border, 1, 0xff000000, 0,72);
use:
local label=CCHTMLLabel:createWithString(<font face=\"fontSizeBorder16" color=\"#ff0000\">red</font>)
self.rootNode:addChild(label)