.\" Automatically generated by Pandoc 2.9.2.1 .\" .TH "al_get_text_dimensions" "3alleg5" "" "Allegro reference manual" "" .hy .SH NAME .PP al_get_text_dimensions - Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include void al_get_text_dimensions(const ALLEGRO_FONT *f, char const *text, int *bbx, int *bby, int *bbw, int *bbh) \f[R] .fi .SH DESCRIPTION .PP Sometimes, the al_get_text_width(3alleg5) and al_get_font_line_height(3alleg5) functions are not enough for exact text placement, so this function returns some additional information. .PP Returned variables (all in pixels): .IP \[bu] 2 x, y - Offset to upper left corner of bounding box. .IP \[bu] 2 w, h - Dimensions of bounding box. .PP Note that glyphs may go to the left and upwards of the X, in which case x and y will have negative values. .SH SEE ALSO .PP al_get_text_width(3alleg5), al_get_font_line_height(3alleg5), al_get_ustr_dimensions(3alleg5)