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 avoid *, 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 π
glutStrokeCharacter(3)glutStrokeString(3)glutStrokeWidth(3)glutStrokeLength(3)glutBitmapHeight(3)
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. πβ
π¦ where this page comes from
- centos-stream 10: freeglut-devel 3.4.0-9.el10 Β· MIT
- centos-stream 9: freeglut-devel 3.2.1-10.el9 Β· MIT
- centos-stream 9: freeglut-devel 3.2.1-10.el9 Β· MIT
- fedora 43: freeglut-devel 3.6.0-6.fc43 Β· MIT
- fedora 43: freeglut-devel 3.6.0-6.fc43 Β· MIT
- fedora 43: freeglut-devel 3.8.0-1.fc43 Β· MIT
- fedora 43: freeglut-devel 3.8.0-1.fc43 Β· MIT
- fedora 44: freeglut-devel 3.8.0-2.fc44 Β· MIT
- fedora 44: freeglut-devel 3.8.0-2.fc44 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- Copyright 2004, the OpenGLUT contributors
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms