Allegro 5 api
#include <allegro5/allegro_font.h> void al_draw_textf(const ALLEGRO_FONT *font, ALLEGRO_COLOR color, float x, float y, int flags, const char *format, ...)
Formatted text output, using a printf() style format string. All parameters have the same meaning as with al_draw_text(3alleg5) otherwise.
al_draw_text(3alleg5), al_draw_ustr(3alleg5)