1get_font_ranges(3)              Allegro manual              get_font_ranges(3)
2
3
4

NAME

6       get_font_ranges  -  Returns  the  number of character ranges in a font.
7       Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       int get_font_ranges(FONT *f)
14

DESCRIPTION

16       Use this function to find out the number of character ranges in a font.
17       You  should  query each of these ranges with get_font_range_begin() and
18       get_font_range_end() to find out what characters are available  in  the
19       font. Example:
20
21          FONT *f;
22          int range;
23          int n;
24          ...
25
26          range = get_font_ranges(f);
27          printf("The font has %d character ranges:\n", range);
28          for (n = 0; n < range; n++)
29             printf("Range %d from 0x%03x - 0x%03x\n",
30                    get_font_range_begin(f, n),
31                    get_font_range_end(f, n));
32

RETURN VALUE

34       Returns  the  number of continuous character ranges in a font, or -1 if
35       that information is not available.
36
37

SEE ALSO

39       get_font_range_begin(3), get_font_range_end(3), transpose_font(3)
40
41
42
43Allegro                          version 4.4.2              get_font_ranges(3)
Impressum