From df052d400ce14395dc8bbeca94f8f0ef0f5b515b Mon Sep 17 00:00:00 2001 From: zhongjin Date: Tue, 22 Nov 2022 01:24:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'3rdparty/fonts/fnt.cxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 3rdparty/fonts/fnt.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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] ;