- fix for about screen (avoid using Vera font seems buggy)

This commit is contained in:
Mark Vejvoda
2011-06-28 15:39:19 +00:00
parent 0e897ee94f
commit 8c2d76b589
4 changed files with 20 additions and 9 deletions

View File

@@ -36,7 +36,7 @@ int Font::charCount = 256;
std::string Font::fontTypeName = "Times New Roman";
bool Font::fontIsMultibyte = false;
bool Font::forceLegacyFonts = false;
float FontMetrics::DEFAULT_Y_OFFSET_FACTOR = 0.0f;
float FontMetrics::DEFAULT_Y_OFFSET_FACTOR = 2.0f;
bool Font::fontIsRightToLeft = false;
float Font::scaleFontValue = 0.75;
//int Font::scaleFontYOffset = 0;

View File

@@ -408,9 +408,14 @@ void TextRenderer3DGl::specialFTGLErrorCheckWorkaround(string text) {
if(error) {
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("\n\nIn [%s::%s Line: %d] error = %d for text [%s]\n\n",__FILE__,__FUNCTION__,__LINE__,error,text.c_str());
if(currentFTGLErrorCount > 0) {
printf("error = %d for text [%s]\n",error,text.c_str());
assertGlWithErrorNumber(error);
if(currentFTGLErrorCount > 5) {
printf("\n**FTGL Error = %d for text [%s] currentFTGLErrorCount = %d\n\n",error,text.c_str(),currentFTGLErrorCount);
fflush(stdout);
//assertGlWithErrorNumber(error);
}
else {
//printf("\n**FTGL #2 Error = %d for text [%s] currentFTGLErrorCount = %d\n\n",error,text.c_str(),currentFTGLErrorCount);
}
currentFTGLErrorCount++;