Rechercher une page de manuel
glutStrokeLength
Langue: en
Version: 154203 (fedora - 05/07/09)
Section: 3 (Bibliothèques de fonctions)
BSD mandoc
NAME
glutStrokeLength - Returns model space width of a string in a given font.LIBRARY
OpenGLUT - fontsSYNOPSIS
In openglut.h Ft float Fn glutStrokeLength void *fontID const unsigned char *stringPARAMETERS
Bf Em
fontID Ef
A GLUT stroked font identifier.
Bf Em
string Ef
A C-style (NUL-terminated) string.
DESCRIPTION
This function reports the sum of the widths of the characters in a Bf Systring, Ef
using the font metrics of a given Bf Sy
font. Ef
Like glutStrokeString(), glutStrokeLength() respects newlines in the input.
Returns 0 if:
- The Bf Sy
fontID Ef
is out of range.
- The Bf Sy
string Ef
is Bf Sy
NULL. Ef
- All characters in the Bf Sy
string Ef
are zero-width.
CAVEATS
Refer to glutStrokeWidth() for notes on the nature of this function's return value, and for comparisons to old GLUT and freeglut.SEE ALSO
glutStrokeString(3) glutStrokeWidth(3) glutStrokeHeight(3) glutBitmapLength(3)Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre