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

NAME

6       transpose_font - Transposes all characters in a font. Allegro game pro‐
7       gramming library.
8

SYNOPSIS

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

DESCRIPTION

16       This function transposes all characters in a font,  effectively  remap‐
17       ping the font. Example:
18
19          FONT *myfont;
20          FONT *capitals;
21          ...
22          /* Create a font of only capital letters */
23          capitals = extract_font_range(myfont, 'A', 'Z');
24
25          /* Now transpose the characters in the font so that they will be used */
26          /*  for the lower case letters a-z */
27          transpose_font(capitals, 'a'-'A');
28          textout_ex(screen, capitals, "allcaps",
29                     100, 100, makecol(255,255,255), 0);
30

RETURN VALUE

32       Returns 0 on success, -1 on failure.
33
34

SEE ALSO

36       get_font_range_begin(3),     get_font_range_end(3),     merge_fonts(3),
37       extract_font_range(3)
38
39
40
41Allegro                          version 4.2.3               transpose_font(3)
Impressum