Here is my first implementation, but it needs some optimization
[code]
newText = function(str, left, top, font, size, color, strokewidth, strokecolor)
local c1
local c2
local bg
local txt
local t = display.newGroup()
for c1 = left-math.abs(strokewidth), left+math.abs(strokewidth) do
for c2 = top-math.abs(strokewidth), top+math.abs(strokewidth) do
bg = display.newText(str, c1, c2, font, size)
bg:setTextColor(strokecolor[1], strokecolor[2], strokecolor[3])
t:insert(bg)
end
end
txt = display.newText(str, left, top, font, size)
txt:setTextColor(color)
t:insert(txt)
return t
end
[/code] [import]uid: 21692 topic_id: 11072 reply_id: 76262[/import]