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 π π§
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms