Text Width
text_widthWidth of one line in Helvetica or Helvetica-Bold, in points. Glyph widths are the Adobe standard-14 AFM numbers in WinAnsi (the same numbers ReportLab ships). The width is the sum times the font size, rounded half away from zero to 0.001 pt. Characters outside that encoding, and control characters, are rejected. A newline belongs in text-wrap. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/text-width
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "text_width"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| font | No | helvetica | |
| size | No | Font size in points | 12 |
| text | Yes |