diff --git a/3rdparty/fonts/fnt.cxx b/3rdparty/fonts/fnt.cxx index 0dc5e15..098d38e 100644 --- a/3rdparty/fonts/fnt.cxx +++ b/3rdparty/fonts/fnt.cxx @@ -61,7 +61,7 @@ float fntTexFont::low_putch ( sgVec3 curpos, float pointsize, cc = cc - 'a' + 'A' ; */ - SG_LOG(SG_GUI,SG_ALERT, "未找到字符"); + SG_LOG(SG_GUI,SG_ALERT, "low_putch 未找到字符 cc=" << cc); if ( cc == ' ' ) { @@ -169,7 +169,7 @@ void fntTexFont::getBBox ( const char *s, float l, r, b, t ; //zhongjin - SG_LOG(SG_GUI,SG_ALERT, "getBBox " << s); + //SG_LOG(SG_GUI,SG_ALERT, "getBBox " << s); l = r = b = t = 0.0f ; @@ -236,7 +236,7 @@ void fntTexFont::getBBox ( const char *s, } if ( ! exists [ cc ] ) { - SG_LOG(SG_GUI,SG_ALERT, "未找到字符"); + SG_LOG(SG_GUI,SG_ALERT, "getBBox 未找到字符 cc=" << cc); continue ; } @@ -259,7 +259,7 @@ void fntTexFont::getBBox ( const char *s, } //zhongjin - SG_LOG(SG_GUI,SG_ALERT, "......................"); + //SG_LOG(SG_GUI,SG_ALERT, "......................"); if ( left != NULL ) *left = l * pointsize ; @@ -287,6 +287,9 @@ void fntTexFont::puts ( sgVec3 curpos, float pointsize, float italic, const char curpos[1] -= pointsize ; } else + + SG_LOG(SG_GUI,SG_ALERT, "low_putch " << *s); + low_putch ( curpos, pointsize, italic, *s ) ; s++ ;