al_get_ustr_dimensions(3alleg5)
β¨ NAME β¨
al_get_ustr_dimensions β Allegro 5 API
hey bestie π welcome to the al_get_ustr_dimensions(3alleg5) manual page, like literally the whole thing. it's giving "i measure text but make it ALLEGRO_USTR" energy, and we're gonna get into it. no cap.
π SYNOPSIS π
#include <allegro5/allegro_font.h>
void al_get_ustr_dimensions(const ALLEGRO_FONT *f,
ALLEGRO_USTR const *ustr,
int *bbx, int *bby, int *bbw, int *bbh)
π DESCRIPTION π
okay so real talk: this function is literally the same vibe as al_get_text_dimensions(3alleg5), except the text is passed as an ALLEGRO_USTR instead of a NUL-terminated char array. that's it. that's the tea. π
you hand it a font f, an ALLEGRO_USTR called ustr, and those four int pointers: bbx, bby, bbw, bbh. iconic. π
bestie note: if you were looking for the char array version, that's a whole different function and you should go check the SEE ALSO. iykyk. π¦
π SEE ALSO π
al_get_text_dimensions(3alleg5)β the NUL-terminatedchararray twin, go say hi π
and that's the whole page, periodt. this was the <b>Allegro reference manual</b> doing its thing for al_get_ustr_dimensions(3alleg5). stay slay, keep compiling, and don't forget to free your USTRs πβ¨
π¦ 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