strwidth(3G) strwidth(3G)
strwidth, lstrwidth - returns the width of the specified text string
long strwidth(str)
String str;
long lstrwidth(type,str)
long type;
void *str;
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.
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.
charstr, deflfont, defrasterfont, getlwidth, lcharstr, mapw, mapw2
These routines are available only in immediate mode.
PPPPaaaaggggeeee 1111 [ Back ]
|