strwidth(3G)
strwidth, lstrwidth - returns the width of the specified text string
As shipped in IRIX 6.5.30. Unchanged since IRIX 6.5.
NAME strwidth, lstrwidth - returns the width of the specified text string C SPECIFICATION long strwidth(str) String str; long lstrwidth(type,str) long type; void *str; PARAMETERS type expects the type of this string. See the man page for charstr for a description of the type argument. str expects the pointer to the string to be measured. DESCRIPTION strwidth and lstrwidth return the width of a text string in pixels, using the character spacing parameters of the current raster font. These functions are useful when doing a simple mapping from screen space to world space. Undefined characters have zero width. SEE ALSO charstr, deflfont, defrasterfont, getlwidth, lcharstr, mapw, mapw2 NOTE These routines are available only in immediate mode.