FMGETSTRWIDTH(3W) FMGETSTRWIDTH(3W)
fmgetstrwidth - return the width of a string in pixels
#include <fmclient.h>
long fmgetstrwidth(fh, str)
fmfonthandle fh;
char *str;
fmgetstrwidth returns the number of pixels the string occupies in the x
dimension. It uses the subpixel resolution provided in the glyph widths
as it accumulates the width. If fmgetstrwidth fails, the return value is
set to -1.
fminit(3W).
This routine is available only in immediate mode.
PPPPaaaaggggeeee 1111 [ Back ]
|