mirror of
https://github.com/glest/glest-source.git
synced 2025-08-16 21:33:59 +02:00
- 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:
@@ -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; }
|
||||
};
|
||||
|
||||
// =====================================================
|
||||
|
Reference in New Issue
Block a user