al_draw_multiline_ustr(3alleg5)
π 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 since5.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
- 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