Text Width
This api provides a programmatic solution for measuring the with of a string in pixels for different fonts and font-sizes. You can use it to e.g. pre-calculate the size of boxes inside an svg. Please let me know if you need a font, character or option that the api does not currently support. You can find the license information of the third-party libraries used here:…
Text Width endpoints
| Method | Endpoint | Description |
|---|---|---|
| text-width | ||
| POST |
Measure Text Width (bulk) /text-width/bulk |
Measure the length of many texts (bulk) in pixels. The text width is based on measurements in Google Chrome (desktop). The deviation is between 0.3 and 1.7 pixels per 1000 pixels… |
| POST |
Measure Text Width /text-width |
Measure the length of a given text in pixels. The text width is based on measurements in Google Chrome (desktop). The deviation is between 0.3 and 1.7 pixels per 1000 pixels of… |
| split-lines | ||
| POST |
Split Text into Multiple Lines /split-lines |
Split text into multiple lines with a maximum length (in px). Words longer than the maximum line length are not split. |
| POST |
Split Text into Multiple Lines (bulk) /split-lines/bulk |
Split many texts (bulk) into multiple lines with a maximum length (in px). Words longer than the maximum line length are not split. |
Text Width pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | 1 / second |
|
| PRO | $3 / month | 2 / second |
|
| ULTRA | $7 / month | 5 / second |
|
| MEGA | $10 / month | 5 / second |
|