al_draw_multiline_textf(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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:


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