1al_draw_text(3)                                                al_draw_text(3)
2
3
4

NAME

6       al_draw_text - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro_font.h>
10
11              void al_draw_text(const ALLEGRO_FONT *font,
12                 ALLEGRO_COLOR color, float x, float y, int flags,
13                 char const *text)
14

DESCRIPTION

16       Writes  the  NUL-terminated string text onto the target bitmap at posi‐
17       tion x, y, using the specified font.
18
19       The flags parameter can be 0 or one of the following flags:
20
21       · ALLEGRO_ALIGN_LEFT - Draw the text left-aligned (same as 0).
22
23       · ALLEGRO_ALIGN_CENTRE - Draw the text centered around the given  posi‐
24         tion.
25
26       · ALLEGRO_ALIGN_RIGHT  - Draw the text right-aligned to the given posi‐
27         tion.
28
29       It can also be combined with this flag:
30
31       · ALLEGRO_ALIGN_INTEGER - Always draw text aligned to an integer  pixel
32         position.   This  was  formerly the default behaviour.  Since: 5.0.8,
33         5.1.4
34
35       This function does not support newline characters (\n), but you can use
36       al_draw_multiline_text(3) for multi line text output.
37

SEE ALSO

39       al_draw_ustr(3),      al_draw_textf(3),      al_draw_justified_text(3),
40       al_draw_multiline_text(3).
41
42
43
44Allegro reference manual                                       al_draw_text(3)
Impressum