diff --git a/3rdparty/fonts/fnt.cxx b/3rdparty/fonts/fnt.cxx index e81ad84..560b68d 100644 --- a/3rdparty/fonts/fnt.cxx +++ b/3rdparty/fonts/fnt.cxx @@ -233,9 +233,12 @@ void fntTexFont::getBBox ( const char *s, } } - if ( ! exists [ cc ] ) + if ( ! exists [ cc ] ) { + SG_LOG(SG_GUI,SG_ALERT, "未找到字符"); continue ; + } + if ( italic >= 0 ) { if ( l > h_pos + v_left [cc] ) l = h_pos + v_left [cc] ;