al_draw_justified_ustr(3alleg5)

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

πŸ’– al_draw_justified_ustr β€” the Allegro 5 API glow-up πŸ’–

okay bestie, so this one lives in the Allegro 5 API (that's the 3alleg5 manual section, iykyk) and it's literally just the ~vibes~ cousin of a function you already know. let's get into it 🫢


✨ SYNOPSIS ✨

#include <allegro5/allegro_font.h>

void al_draw_justified_ustr(const ALLEGRO_FONT *font,
   ALLEGRO_COLOR color, float x1, float x2,
   float y, float diff, int flags, const ALLEGRO_USTR *ustr)

no cap, that's the whole signature. every arg stays exactly where it is, we do not move them, we do not rename them, periodt πŸ’…


🌸 DESCRIPTION 🌸

so the tea is: this is like al_draw_justified_text(3alleg5) β€” same energy, same justified-text situation β€” except the text gets handed over as an ALLEGRO_USTR instead of a NUL-terminated char array. πŸŽ€

that's it. that's the difference. it's giving "same function, different string type" and honestly? iconic. if you've got your text chilling in an ALLEGRO_USTR, this is the one you want. ✨


πŸ¦‹ SEE ALSO πŸ¦‹

go read those too, they're the siblings and they ate πŸ’œ


and that's the page fr fr! this was the Allegro reference manual talking about al_draw_justified_ustr from the 3alleg5 section β€” tysm for reading, now go draw some justified text, mwah πŸ’–πŸ’…βœ¨

πŸ“¦ where this page comes from