1al_draw_justified_text(3) al_draw_justified_text(3)
2
3
4
6 al_draw_justified_text - Allegro 5 API
7
9 #include <allegro5/allegro_font.h>
10
11 void al_draw_justified_text(const ALLEGRO_FONT *font,
12 ALLEGRO_COLOR color, float x1, float x2,
13 float y, float diff, int flags, const char *text)
14
16 Like al_draw_text(3), but justifies the string to the region x1-x2.
17
18 The diff parameter is the maximum amount of horizontal space to allow
19 between words. If justisfying the text would exceed diff pixels, or
20 the string contains less than two words, then the string will be drawn
21 left aligned.
22
23 The flags parameter can be 0 or one of the following flags:
24
25 ยท ALLEGRO_ALIGN_INTEGER - Draw text aligned to integer pixel positions.
26 Since: 5.0.8, 5.1.5
27
29 al_draw_justified_textf(3), al_draw_justified_ustr(3)
30
31
32
33Allegro reference manual al_draw_justified_text(3)