new glest ini, font handling changed!!!

"dynamic" fonts for linux ( maybe an error fallback should be added in gl_wrap.cpp if font is not available )
better option menu layout
This commit is contained in:
Titus Tscharntke
2010-04-01 18:59:05 +00:00
parent 05a031cc0e
commit c678d35bdb
4 changed files with 54 additions and 28 deletions

View File

@@ -88,6 +88,7 @@ void createGlFontBitmaps(uint32 &base, const string &type, int size, int width,
if(display == 0) {
throw std::runtime_error("Couldn't create font: display is 0");
}
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] trying to load font %s\n",__FILE__,__FUNCTION__,__LINE__,type.c_str());
XFontStruct* fontInfo = XLoadQueryFont(display, type.c_str());
if(!fontInfo) {
throw std::runtime_error("Font not found.");