mirror of
https://github.com/glest/glest-source.git
synced 2025-10-02 02:16:40 +02:00
- ported bugfixes for 3.6.0.3 release:
- CMake build system fixes applied during debian testing (like checking for compiler SSE support etc) - Windows client fix for headless server operation - Crash for some systems when trying to use VBO's - Fixed AZERTY keyboard support - Enhanced support for screenshots in g3d viewer - Updated particle code from titi - Bugfix for custom data path override causing compiler error - Bugfix for fontconfig to properly find fonts on systems that support and have fontconfig installed (fixes numerous non debian based systems that reported null font errors) - Minor UI fix on battle end screen when playing 8 players (last player was sometimes chopped off)
This commit is contained in:
@@ -78,7 +78,7 @@ TextFTGL::TextFTGL(FontTextHandlerType type) : Text(type) {
|
||||
delete ftFont; ftFont = NULL;
|
||||
free((void*)fontFile);
|
||||
fontFile = NULL;
|
||||
throw runtime_error("FTGL: error loading font");
|
||||
throw runtime_error(string("FTGL: error loading font: ") + string(fontFile));
|
||||
}
|
||||
free((void*)fontFile);
|
||||
fontFile = NULL;
|
||||
@@ -123,9 +123,9 @@ void TextFTGL::cleanupFont() {
|
||||
fontFile = NULL;
|
||||
}
|
||||
|
||||
void TextFTGL::init(string fontName, int fontSize) {
|
||||
void TextFTGL::init(string fontName, string fontFamilyName, int fontSize) {
|
||||
cleanupFont();
|
||||
fontFile = findFont(fontName.c_str());
|
||||
fontFile = findFont(fontName.c_str(),fontFamilyName.c_str());
|
||||
|
||||
//ftFont = new FTBufferFont(fontFile);
|
||||
//ftFont = new FTGLPixmapFont(fontFile);
|
||||
|
Reference in New Issue
Block a user