gui_font_baseline(3)
π 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
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms