1UNTITLED LOCAL UNTITLED
2
4 glutStrokeLength — Returns model space width of a string in a given font.
5
7 OpenGLUT - fonts
8
10 #include <openglut.h>
11
12 float
13 glutStrokeLength(void *fontID, const unsigned char *string);
14
16 fontID A GLUT stroked font identifier.
17
18 string A C-style (NUL-terminated) string.
19
21 This function reports the sum of the widths of the characters in a
22 string, using the font metrics of a given font.
23
24 Like glutStrokeString(), glutStrokeLength() respects newlines in the
25 input.
26
27 Returns 0 if:
28 - The fontID is out of range.
29 - The string is NULL.
30 - All characters in the string are zero-width.
31
33 Refer to glutStrokeWidth() for notes on the nature of this function's
34 return value, and for comparisons to old GLUT and freeglut.
35
37 glutStrokeString(3) glutStrokeWidth(3) glutStrokeHeight(3)
38 glutBitmapLength(3)
39
40
41
42
43 Epoch