get_font_range_end(3alleg4)
β¨ get_font_range_end β bestie edition β¨
okay so you're in the Allegro manual, section 3alleg4, and today's main character is get_font_range_end(3alleg4). yes, we're doing font internals. it's giving lowkey iconic, ngl π
π NAME π
get_font_range_end β returns the last character of a character range in a font. it's part of the Allegro game programming library, bestie π
πΈ SYNOPSIS πΈ
#include <allegro.h>
int get_font_range_end(FONT *f, int range)
π¦ DESCRIPTION π¦
so this function lets you find out the index to the last character of a character range for a font. literally what it says on the tin π«Ά
you can pass -1 for the range parameter if you want to know the start of the whole font range. or, alternatively, pass a number from 0 to (but not including) get_font_ranges(f) to get the start of a specific character range in the font. pick your fighter, both are valid β¨
π real talk though: you should check the start and end of all font ranges to see if a specific character is actually available in the font. not all characters in the range returned byget_font_range_begin(f, -1)andget_font_range_end(f, -1)need to be available! likeβ¦ the range is the vibe, not the guest list π
example time, as promised:
printf("The font has a character range of %d - %d\n",
get_font_range_begin(font, -1),
get_font_range_end(font, -1));
β RETURN VALUE β
returns the last character in the font range, or -1 if that information is not available. sometimes the answer is just no π
π SEE ALSO π
that's the whole page, bestie, you ate it π go forth and query your font ranges with main character energy π
β xoxo, the Allegro girlies, version 4.4.3, signing off πβ¨π (the original page was stamped get_font_range_end(3alleg4), and now you know the whole thing, fr fr)
π¦ 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