al_draw_multiline_ustr(3alleg5)

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

πŸ’– al_draw_multiline_ustr πŸ’–

okay bestie, welcome to the Allegro 5 API corner of the manual β€” this one's a little font-drawing baddie and she's honestly so iconic for it. no cap, she's the girl who draws your text across multiple lines for you, and she does it with an ALLEGRO_USTR. let's get into it πŸŽ€


✨ SYNOPSIS ✨

#include <allegro5/allegro_font.h>

void al_draw_multiline_ustr(const ALLEGRO_FONT *font,
     ALLEGRO_COLOR color, float x, float y, float max_width, float line_height,
     int flags, const ALLEGRO_USTR *ustr)

like, look at that signature. she's got font, she's got color, she's got coordinates, she's got a max_width and a line_height, she takes flags, and then β€” the moment we've all been waiting for β€” an ALLEGRO_USTR. periodt. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: this function is exactly like al_draw_multiline_text(3alleg5), the way that it literally is that same function in a different outfit. the one single difference β€” the whole plot twist β€” is that the text gets passed in as an ALLEGRO_USTR instead of a NUL-terminated char array.

that's it. that's the vibe. if you already know al_draw_multiline_text, you already know her. if you don't, go read that page first, bestie, because this one is just the ustr-flavored remix. 🎧


⭐ SINCE ⭐

  • 5.1.9 β€” she's been here since 5.1.9, so she's not new new, she's just lowkey underrated. πŸ‘‘

🌸 SEE ALSO 🌸

go read these, they're her sisters fr fr 🫢


this page came to you straight out of the Allegro reference manual β€” the one and only, no date on the footer, just vibes and version energy. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from