gui_font_baseline(3alleg4)

✨ gui_font_baseline ✨

okay so this is a page from the Allegro manual, section 3alleg4 β€” yes bestie, the Allegro game programming library, we love her πŸ’– β€” and today we're talking about one tiny little global variable that fixes one very specific aesthetic problem: the height of your keyboard shortcut underscores. she's small but she's iconic.


🌸 NAME 🌸

gui_font_baseline β€” Adjusts the keyboard shortcut underscores height.

Allegro game programming library.


πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro.h>

extern int gui_font_baseline;

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea, bestie: if you set this to a non-zero value, it adjusts the keyboard shortcut underscores so they account for the height of the descenders in your font. 🫢

Like β€” your little _ under the menu letters? It needs to know how far down your font's descenders (the bits of letters like g, j, p, q, y that dip below the baseline) actually reach, and this variable is how you tell it. Non-zero = yes please, take the descenders into account. Zero = nah, default behaviour. ✨

ngl this is one of those "you'll know when you need it" variables β€” if your shortcut underscores look like they're vibing in the wrong place, this is the knob. πŸ’…

and that's the whole page, no cap β€” literally one variable, one job, and she ate. πŸ“

sending love from the Allegro girlies, version 4.4.3, mwah πŸ’œ 🧚