glutStrokeHeight – Returns the height of a given font.
Library
OpenGLUT – fonts
Synopsis
In openglut.h Ft GLfloat Fn glutStrokeHeight void *fontID
Parameters
Bf Em
fontID Ef
A GLUT stroked font identifier.
Description
This function reports the height of a font, given by Bf Sy
fontID, Ef
as a global characteristic of that font.
Returns 0 if Bf Sy
fontID Ef
is invalid.
Caveats
Does Bf Li
not Ef
report the height used by individual characters. This may limit its usefulness; perhaps we should change it? (And/or add a new function.)
Todo
We have discussed adding a "font descender" query. We should go ahead and do it.
See Also
glutStrokeCharacter(3) glutStrokeString(3) glutStrokeWidth(3) glutStrokeLength(3) glutBitmapHeight(3)