GLUTSTROKEHEIGHT(3)

πŸ’– glutStrokeHeight β€” bestie, it tells you how TALL a font is πŸ’–

okay so real talk, this one lives in the OpenGLUT fonts girlies club, and it's the glow-up you call when you need the height of a stroked font. no cap.


✨ SYNOPSIS ✨

#include <openglut.h>

GLfloat
glutStrokeHeight(void *fontID);

like, that's it. one function, one arg, one GLfloat coming back at you. iconic behavior honestly. πŸ’…


πŸŽ€ PARAMETERS πŸŽ€

  • fontID β€” a GLUT stroked font identifier. yes bestie, it's a void *, we don't make the rules. 🫢

🌸 DESCRIPTION 🌸

So the way this works: you hand it a fontID, and it hands you back the height of that font β€” as a global characteristic of the font itself. like, the whole font's vibe, not any one character's little moment. ✨

And if fontID is invalid? it returns 0. that's it, that's the whole tea. zero. nada. nothing. πŸ’€


⚠️ CAVEATS ⚠️

okay so listen. this does not report the height used by individual characters. which lowkey might limit how useful it is?? πŸ™ˆ and the original authors literally wrote, and I quote the vibe: "perhaps we should change it? (And/or add a new function.)" so yeah, even the docs are like... hmm. 😭

not me being the messenger here, but if you were expecting per-character heights, you're not getting them from this one. periodt.

πŸ“ TODO πŸ“

fr fr, they've discussed adding a "font descender" query. and the energy is very much "we should go ahead and do it." manifesting it for them. πŸ•―οΈβœ¨


πŸ‘‘ SEE ALSO πŸ‘‘

go read the whole friend group, they're all serving. πŸ’œ


and that's the whole page bestie!! this one's from the OpenGLUT era and the footer is literally just UNDATED and UNTITLED() β€” like the manpage equivalent of an unsent draft in your notes app. no date, no title, just vibes. πŸ¦‹πŸ’– mwah, ily, go draw some strokes. 🌈⭐