- attempt to fix tomreyn's font issue

This commit is contained in:
Mark Vejvoda 2010-07-03 15:45:58 +00:00
parent 3792a0af23
commit f3a636ff15

View File

@ -182,7 +182,7 @@ void createGlFontBitmaps(uint32 &base, const string &type, int size, int width,
if(charinfo != NULL) {
//SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] type = [%s] charinfo->width = %d\n",__FILE__,__FUNCTION__,__LINE__,type.c_str(),charinfo->width);
metrics.setWidth(i, static_cast<float> (charinfo->width));
metrics.setWidth(i, static_cast<float> (std::max((short)0,charinfo->width)));
}
else {
//SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] type = [%s] using size 6\n",__FILE__,__FUNCTION__,__LINE__,type.c_str());