Name

textWidth()

Examples
textSize(28)
c = 'T'
cw = textWidth(c)
text(c, 0, 40)
line(cw, 0, cw, 50)
s = "Tokyo"
sw = textWidth(s)
text(s, 0, 85)
line(sw, 50, sw, 100)
Description Calculates and returns the width of any character or text string.
Syntax
	textWidth(str)
Parameters
strString: any character or text string
Related loadFont()
text()
textFont()
Updated on Tue Jul 11 06:52:24 2017.
Creative Commons License