更新 '3rdparty/fonts/fnt.cxx'
This commit is contained in:
parent
662340a667
commit
bd3528d580
11
3rdparty/fonts/fnt.cxx
vendored
11
3rdparty/fonts/fnt.cxx
vendored
@ -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++ ;
|
||||
|
Loading…
Reference in New Issue
Block a user