al_draw_multiline_textf(3alleg5)
π al_draw_multiline_textf π
ok so bestie, we're in the Allegro 5 API β that's the Allegro reference manual btw, in case you were wondering where you wandered into. And this little cutie is al_draw_multiline_textf, which is exactly what it sounds like: multiline text, but make it formatted. Let's get into it. π¦
β¨ NAME β¨
al_draw_multiline_textf β the Allegro 5 API's formatted, multi-line text-drawing icon π
πΈ SYNOPSIS πΈ
#include <allegro5/allegro_font.h>
void al_draw_multiline_textf(const ALLEGRO_FONT *font,
ALLEGRO_COLOR color, float x, float y, float max_width, float line_height,
int flags, const char *format, ...)
π DESCRIPTION π
So basically: it's formatted text output, using a printf() style format string. That's the whole plot twist β you get the ... variadic magic like printf(), but it draws to your screen instead of your terminal. π
And every single other parameter? All of them mean the exact same thing as they do with al_draw_multiline_text(3alleg5). Same font, same color, same x, same y, same max_width, same line_height, same flags. No new rules, no surprises, we love a consistent queen. β¨
β SINCE β
5.1.9 β an OG, been here since way back π«Ά
π SEE ALSO π
the way these are all your besties fr fr:
al_draw_multiline_text(3alleg5)β the non-formatted sibling, does everything except theprintf()bital_draw_multiline_ustr(3alleg5)β for when your text is aUSTRsituational_do_multiline_text(3alleg5)β the "do the multiline thing" of it all
ok that's the page!! π written down in the Allegro reference manual, filed under al_draw_multiline_textf(3alleg5) β mwah, go draw some slayful formatted text, bestie πβ¨π
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms