1get_font_range_end(3) Allegro manual get_font_range_end(3)
2
3
4
6 get_font_range_end - Returns the last character of a character range in
7 a font. Allegro game programming library.
8
10 #include <allegro.h>
11
12
13 int get_font_range_end(FONT *f, int range)
14
16 This function allows you to find out the index to the last character of
17 a character range for a font. You can pass -1 for the range parameter
18 if you want to know the start of the whole font range, or a number from
19 0 to (but not including) get_font_ranges(f) to get the start of a spe‐
20 cific character range in the font. You should check the start and end
21 of all font ranges to see if a specific character is actually available
22 in the font. Not all characters in the range returned by
23 get_font_range_begin(f, -1) and get_font_range_end(f, -1) need to be
24 available! Example:
25
26 printf("The font has a character range of %d - %d\n",
27 get_font_range_begin(font, -1),
28 get_font_range_end(font, -1));
29
31 Returns the last character in the font range, or -1 if that information
32 is not available.
33
34
36 get_font_ranges(3), get_font_range_begin(3), transpose_font(3)
37
38
39
40Allegro version 4.4.3 get_font_range_end(3)