更新 '3rdparty/fonts/fnt.cxx'

This commit is contained in:
zhongjin 2022-11-22 01:24:31 +08:00
parent c36dd8fa37
commit df052d400c

View File

@ -233,9 +233,12 @@ void fntTexFont::getBBox ( const char *s,
} }
} }
if ( ! exists [ cc ] ) if ( ! exists [ cc ] ) {
SG_LOG(SG_GUI,SG_ALERT, "未找到字符");
continue ; continue ;
}
if ( italic >= 0 ) if ( italic >= 0 )
{ {
if ( l > h_pos + v_left [cc] ) l = h_pos + v_left [cc] ; if ( l > h_pos + v_left [cc] ) l = h_pos + v_left [cc] ;