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 🌈


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. β­πŸ’œ