Home | All Classes | Grouped Classes | Index | Search
Constructs a font.
CL_Font(); CL_Font( const CL_Font& copy); CL_Font( const std::string& resource_id, CL_ResourceManager* manager); CL_Font( const CL_Sprite& glyphs, const std::string& letters, int spacelen = -1, bool monospace = false); CL_Font( const std::string& font_name, const std::string& letters, int height, int width = 0, bool bold = false, bool italic = false, bool underline = false, bool strikeout = false); CL_Font( const std::string& font_name, int height, int width = 0, bool bold = false, bool italic = false, bool underline = false, bool strikeout = false);
Parameters:
Detailed description:
If spacelen is unspecified, CL_Font attempts to resolve it itself. First, it looks to see if you have specified a space character in letter_chars: if you have, it uses that glyph's width as the space width (as well as using it to actually draw the space). If it does not find a space glyph, then it will look at every glyph's width and make the space width the average of that.
See also:
CL_Font | CL_Resource | CL_ResourceManager | CL_Sprite