Skip to content

function textWidth (client-side)

Available since version: 0.0.4

This function will get the text width on screen in virtuals.
If text consists of multiple lines, the width of the longest one will be retuned.

Declaration

int textWidth(string text)

Parameters

  • string text: the text of which you want to calculate width.

Returns int

the text width.