strwidth(3) — Unix Programmer’s Manual
NAME
strwidth - return the width of the specified text string
SYNOPSIS
C
long strwidth(str)
String str;
FORTRAN
integer function strwid(str)
character∗(∗) str
Pascal
function strwidth(str: String): integer;
DESCRIPTION
Strwidth returns the width, in pixels, of a text string, using the character spacing parameters in the currently selected raster font. This routine is useful only when there is a simple mapping from screen to world space. The user must do the mapping.
Undefined characters have zero width.
SEE ALSO
getheight, getlwidth, mapw, mapw2
NOTE
This command can only be used in immediate mode.
Silicon Graphics — R1c