You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Graphics Library > getStringWidth

9.12 getStringWidth

gc:getStringWidth("text")

Returns the pixel width of text. The pixel width is calculated using the font setting previously set by a call to setFont.

Introduced in platform.apiLevel = '1.0'