gui_font_baseline(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’– gui_font_baseline(3) πŸ’–

okay bestie, welcome to the Allegro manual ✨ this one's a tiny little global variable but she's lowkey iconic, so let's get into it 🫢


✨ NAME ✨

gui_font_baseline β€” she adjusts the keyboard shortcut underscores height, no cap πŸ’… part of the Allegro game programming library πŸŽ€


✨ SYNOPSIS ✨

#include <allegro.h>

extern int gui_font_baseline;

like. that's the whole vibe. one int, declared extern, living her best life 🌸


✨ DESCRIPTION ✨

so here's the tea πŸ“ if you set this bad boy to a non-zero value, it adjusts the keyboard shortcut underscores so they actually account for the height of the descenders in your font 😭

like… those little underscores under the shortcut letters? they can end up looking all wrong if your font has descenders (you know, the lil tails that hang down off letters like g and y and p πŸ‘‘). setting gui_font_baseline to a non-zero value moves them to compensate for that height. she's giving typography self-care fr fr ✨

ngl it's a global variable, so it's not passing you a parameter or anything β€” you just set it and the GUI vibe-checks it. zero means "nah, don't do the adjustment", non-zero means "yes queen, adjust for descenders" πŸ’–

πŸ¦‹ SEE ALSO πŸ¦‹

aww there's no SEE ALSO section in this one bestie, she's a standalone girlie πŸ™ˆ (iykyk)


that's the whole page!! stay slay, keep your underscores aligned, and remember: this lil page came to you straight from the Allegro manual, version 4.4.3 πŸŽ€πŸ’œ mwah, go write some cute GUI text now πŸ’…βœ¨

πŸ“¦ where this page comes from