GLUTBITMAPHEIGHT(3)
β¨ NAME β¨
glutBitmapHeight β bestie, this one hands you back the height of a given font, in pixels. That's it, that's the whole gig. π
π LIBRARY π
OpenGLUT - bitmapfont π
π¦ SYNOPSIS π¦
#include <openglut.h>
int
glutBitmapHeight(void *font);
πΈ PARAMETERS πΈ
fontβ a bitmapped font identifier. that's the lil' handle pointing at whichever bitmap font you're asking about π
π DESCRIPTION π
okay so here's the tea: glutBitmapHeight gives you the line-to-line vertical spacing, in pixels, between lines of a bitmapped font. literally just how much room each line takes up when you stack 'em. πβ¨
and if font is invalid? it returns 0. no drama, no crash, just a lil' zero. π
π CAVEATS π
ngl, this is the part where we gotta be honest with you, bestie. glutBitmapHeight does not report the height used by individual characters. it's giving "line spacing only," and that may lowkey limit its usefulness. (compare with other font-metric queries if you need more deets.) π
π₯ TODO π₯
so we've been chatting about adding a "font descender" query. and honestly? we should go ahead and do it. it's giving unfinished business, and we're not beating the allegations until it ships. ππ
π SEE ALSO π
glutBitmapCharacter(3)glutBitmapString(3)glutBitmapWidth(3)glutBitmapLength(3)glutStrokeHeight(3)
and that's the whole page, babe π«Ά this one's from the OpenGLUT era, dated UNDATED, and it came out under the very mysterious title UNTITLED() β no cap, that's genuinely what the footer says. iconic, honestly. βπ
π¦ 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