Returns the length of a string in pixels.


int text_length(const FONT *f, const char *str);
Returns the length (in pixels) of a string in the specified font. Example:
      int width = text_length(font, "I love spam");
      bmp = create_bitmap(width, height);
See Also:
Examples using this:

Related Discussions

The following threads each have code containing this keyword: Note: You can click on the numbers to jump directly to the posts that reference this page.

Related Projects

The following projects include source code containing this keyword: