Dev - Lua Libraries

Lua Command: s3sprite.getFontWidth

Parameters

Return Values

Signature

int width = s3sprite.getFontWidth(string text, int fontID)

Description

Get the width of text in pixels, when it is written using the font with the given fontID.

Note:

This command returns the actual text width in pixels when no scaling is applied.