Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
How I get a very precise text size in pixels? — Gideros Forum

How I get a very precise text size in pixels?

edited May 2014 in General questions
I need to make a textbox that resizes itself around localized text.

My localization include languages that at least in Corona breaks the width measurement (Chinese is the worst one)

So, how I get a text precise size in pixels so I can make the textbox only slightly larger than it?
I make games for children: http://www.kidoteca.com

Comments

  • ar2rsawseenar2rsawseen Maintainer
    Not sure what are the problems with width measurement, but I think simple
    local x, y, width, height = text:getBounds(stage)
    should do the job
Sign In or Register to comment.