.\" Generated by the Allegro makedoc utility .TH text_length 3alleg4 "version 4.4.3" "Allegro" "Allegro manual" .SH NAME text_length \- Returns the length of a string in pixels. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B int text_length(const FONT *f, const char *str); .SH DESCRIPTION Returns the length (in pixels) of a string in the specified font. Example: .nf int width = text_length(font, "I love spam"); ... bmp = create_bitmap(width, height); .fi .SH SEE ALSO .BR text_height (3alleg4), .BR ex12bit (3alleg4), .BR exmidi (3alleg4), .BR expat (3alleg4), .BR exunicod (3alleg4)