textWidth()
Typography / AttributesDescription
Calculates and returns the width of any character or text string in the current font.
Syntax
float textWidth(std::string s)
Parameters
| Name | Type | Description |
|---|---|---|
| s | std::string | the string to measure |
Returns
floatRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...