美文网首页
lua使用加载的字体

lua使用加载的字体

作者: a522050761d0 | 来源:发表于2018-01-06 10:57 被阅读0次

--加入获奖的名字

--加入获奖的名字

local txt = cc.Label:createWithTTF("hello world","fonts/round_body.ttf",56)

txt:setAnchorPoint(0.5,0.5)

txt:setColor(cc.c3b(255,255,255))

txt:enableOutline(cc.c4b(100,66,7,255), 3) --字体加描边

txt:setPosition(cc.p(0,0))

txt:addTo(parent)

相关文章

网友评论

      本文标题:lua使用加载的字体

      本文链接:https://www.haomeiwen.com/subject/dntynxtx.html