There was an error while loading. Please reload this page.
char c = 'T'; float cw = textWidth(c); text(c, 0, 40); line(cw, 0, cw, 50);
String s = "Tokyo"; float sw = textWidth(s); text(s, 0, 85); line(sw, 50, sw, 100);
#### Descrição Calculates and returns the width of any character or text string. #### Sintaxe ```pde textWidth(data)
Parâmetros data char or String
Float
Web & Applicações
loadFont()
PFont
text()
textFont()