there's a grain of truth in the new graphics code now...
#ifndef GRAPHICS_FONT_MANAGER_HH
#define GRAPHICS_FONT_MANAGER_HH
#include <ClanLib/display.h>
namespace graphics
{
/**
* Loads fonts and lets other components use them
*/
class FontManager {
private:
/**
* Our resource manager for loading these
*/
CL_ResourceManager &resources;
/**
* A basic monospace font
*/
CL_Font simple_font;
public:
/**
* Load fonts
*/
FontManager (CL_ResourceManager &resources) :
resources(resources), simple_font("Font2", &resources)
{
}
/**
* Returns a CL_Font that can be used for drawing text
*/
CL_Font& getSimpleFont (void) { return simple_font; }
};
}
#endif