Home | All Classes | Grouped Classes | Index | Search
Returns the drawn size of some source text.
CL_Size get_size( const std::string& str, CL_Size max_size = CL_Size(0, 0)); CL_Size get_size( std::string::const_iterator start, std::string::const_iterator end, CL_Size max_size = CL_Size(0, 0));
Parameters:
Return value:
The size in pixels.
Detailed description:
Newlines have a width of zero unless you gave them a glyph (which is pretty useless anyways). Other unknown characters have the width of a space in their respective font.
See also: