mirror of
https://github.com/glest/glest-source.git
synced 2025-08-13 03:44:00 +02:00
- updated findfont method to be shared and to use more default fonts if main ones are not found
This commit is contained in:
@@ -139,6 +139,8 @@ public:
|
||||
|
||||
Font3D *ConvertFont2DTo3D(Font2D *font);
|
||||
|
||||
const char* findFont(const char *firstFontToTry=NULL);
|
||||
|
||||
}}//end namespace
|
||||
|
||||
#endif
|
||||
|
@@ -48,11 +48,8 @@ public:
|
||||
|
||||
private:
|
||||
FTFont *ftFont;
|
||||
//FTGLPixmapFont *ftFont;
|
||||
const char* fontFile;
|
||||
|
||||
const char* findFont(const char *firstFontToTry=NULL);
|
||||
|
||||
void cleanupFont();
|
||||
};
|
||||
|
||||
|
@@ -54,20 +54,16 @@ public:
|
||||
virtual float LineHeight(const wchar_t* = L" ", const int = -1);
|
||||
|
||||
private:
|
||||
//FTFont *ftFont;
|
||||
|
||||
VertexBuffer *buffer;
|
||||
TextureAtlas *atlas;
|
||||
TextureFont *font;
|
||||
//TextureGlyph *glyph;
|
||||
FontManager *manager;
|
||||
//Markup markup;
|
||||
int fontFaceSize;
|
||||
|
||||
string fontName;
|
||||
const char* fontFile;
|
||||
|
||||
const char* findFont(const char *firstFontToTry=NULL);
|
||||
|
||||
void cleanupFont();
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user