- bugfix to fallback to a default configured font if the specified font in the ini property fails to load. The default font is 'fixed' but can be overriden in the ini using:

DefaultFont=yourfonttype
This commit is contained in:
Mark Vejvoda
2010-10-09 20:35:53 +00:00
parent 3963b99e37
commit a84f0d1b6d
4 changed files with 28 additions and 10 deletions

View File

@@ -14,20 +14,27 @@
#include "font.h"
#include "opengl.h"
#include <string>
#include "leak_dumper.h"
namespace Shared{ namespace Graphics{ namespace Gl{
using namespace std;
namespace Shared { namespace Graphics { namespace Gl {
// =====================================================
// class FontGl
// =====================================================
class FontGl{
class FontGl {
protected:
GLuint handle;
static string default_fonttype;
public:
GLuint getHandle() const {return handle;}
static string getDefault_fontType() { return default_fonttype; }
static void setDefault_fontType(string value) { default_fonttype = value; }
};
// =====================================================