Hello everyone.
I saw there are several post about it and I wonder what is the best way to insert as a border to a text.
It seems to me esenziale for my game, but I would not waste memory or make complicated what.
It would also help some examples
Hello everyone.
I saw there are several post about it and I wonder what is the best way to insert as a border to a text.
It seems to me esenziale for my game, but I would not waste memory or make complicated what.
It would also help some examples
You can’t add strokes to text.
Your best bet is to use images or bitmapped fonts. Â Sorry no links or examples.
Thank you roaminggamer
I was referring to solutions like these:
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
but to tell the truth I do not like very much.
does not allow you to edit the text, and I think a lot consume.
As for the bitmapped fonts as it works?
Ah, I see.Â
I did forget, Â you can use embossed text and modify the highlight and shadow to be the same color. Â That might do it for you.
PS - Didn’t understand this line “As for the bitmapped fonts as it works?”  If you were asking how it works, you’ll have to look it up or maybe someone else will chime in.  That’s beyond my time budget to help with.
I will say, bitmapped fonts are an external solution, not built-in, so there are choices.
Try Googling “bitmapped font corona sdk”… these were the top three responses I got:
Thanks for your time.
Good answers I solve my problems.
Only a small quest on the embossed text. I can increase the size of the highlight and shadow?
Thanks again
You can’t add strokes to text.
Your best bet is to use images or bitmapped fonts. Â Sorry no links or examples.
Thank you roaminggamer
I was referring to solutions like these:
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
but to tell the truth I do not like very much.
does not allow you to edit the text, and I think a lot consume.
As for the bitmapped fonts as it works?
Ah, I see.Â
I did forget, Â you can use embossed text and modify the highlight and shadow to be the same color. Â That might do it for you.
PS - Didn’t understand this line “As for the bitmapped fonts as it works?”  If you were asking how it works, you’ll have to look it up or maybe someone else will chime in.  That’s beyond my time budget to help with.
I will say, bitmapped fonts are an external solution, not built-in, so there are choices.
Try Googling “bitmapped font corona sdk”… these were the top three responses I got:
Thanks for your time.
Good answers I solve my problems.
Only a small quest on the embossed text. I can increase the size of the highlight and shadow?
Thanks again