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

Sometimes, the al_get_ustr_width(3alleg5) and al_get_font_line_height(3alleg5) functions are not enough for exact text placement, so this function returns some additional information.

RELATED TO al_get_ustr_dimensions…

al_get_text_dimensions(3alleg5)