get_font_range_begin(3alleg4)
β¨ get_font_range_begin β¨
okay bestie, welcome to the Allegro manual π this one's from the 3alleg4 section, so grab your font pointers and let's go π
πΈ NAME πΈ
get_font_range_begin β returns the start of a character range in a font. it's giving Allegro game programming library energy π
π¦ SYNOPSIS π¦
#include <allegro.h>
int get_font_range_begin(FONT *f, int range)
π DESCRIPTION π
so this function is your little detective π it lets you find out the start of a specific character range for a font. iconic behavior, honestly.
here's the tea on the range parameter β:
- you can pass
-1if you want to know the start of the whole font range (like, the entire vibe) - or you can pass a number from
0to (but not including)get_font_ranges(f)to get the start of a specific character range in the font
and here's an example so you can see it in the wild π§:
printf("The font has a character range of %d - %d\n",
get_font_range_begin(font, -1),
get_font_range_end(font, -1));
not me writing printf statements at 3am π slay though, it works.
π RETURN VALUE π
returns the first character in the font range π«Ά ... or -1 if that information is not available. so like, if it comes back -1, the info just isn't there, no cap. π
β SEE ALSO β
friendly reminder bestie: everything above is facts only, i'm just the messenger with better nails π
and that's a wrap on this page, written for Allegro version 4.4.3 π go forth and range-check your fonts, you absolute main character πβ¨
π¦ 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