| stringsize, stringwidth, stringnwidth, runestringsize, runestringwidth, runestringnwidth \- graphical size of strings |
| Point stringsize(Font *f, char *s) |
| int stringwidth(Font *f, char *s) |
| int stringnwidth(Font *f, char *s, int n) |
| Point runestringsize(Font *f, Rune *s) |
| int runestringwidth(Font *f, Rune *s) |
| int runestringnwidth(Font *f, Rune *s, int n) |
| These routines compute the geometrical extent of character strings when drawn on the display. The most straightforward, |
| representing the vector from upper left to lower right of the NUL-terminated string |
| returns the width of the first |
| The routines beginning with |
| are analogous, but accept an array of runes rather than |
| .BR /lib/font/bit " directory of fonts |
| .B /usr/local/plan9/src/libdraw |
| Because strings are loaded dynamically, these routines may generate I/O |
| to the server and produce calls to the graphics error function. |