| Entry | |
|---|---|
| R0 | 1 |
| R1 | Pointer to string |
| R2 | Number of Characters to scan, or |
| 0 for whole string |
| Exit | |
|---|---|
| R0 | String width in OS units |
| R1 | Preserved |
| R2 | Preserved |
With a reason code of 1, this call returns the width of a specified string using the current desktop font.
This is often used prior to plotting a string to an icon, in case the icon needs to be resized.
The value returned is in OS units.