---
name: "al_get_ustr_dimensions"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_get_ustr_dimensions"
---

# al\_get\_ustr\_dimensions(3)

Allegro 5 API

## NAME

al\_get\_ustr\_dimensions - Allegro 5 API

## 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

Like [al\_get\_text\_dimensions(3)](/al_get_text_dimensions/3.md), except the text is passed as an ALLEGRO\_USTR instead of a NUL-terminated char array.

## SEE ALSO

[al\_get\_text\_dimensions(3)](/al_get_text_dimensions/3.md)
