s3d_strlen
get rendered string size
- Provided by: s3d-doc (Version: 0.2.2.1-6build3)
- Source: s3d
- Report a bug
get rendered string size
#include <s3d.h>
float s3d_strlen(const char *str);
Returns the length of the string if it were rendered with the currently selected font. That might be useful to estimate the size used for a text and render the background or bounding box before inserting the text.
Simon Wunderlich