From 2855aa8f1f454ce21473a5918a614eb3f34e59c2 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Tue, 22 Nov 2022 00:21:32 +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 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/3rdparty/fonts/fnt.cxx b/3rdparty/fonts/fnt.cxx index 51d8468..1c6003d 100644 --- a/3rdparty/fonts/fnt.cxx +++ b/3rdparty/fonts/fnt.cxx @@ -184,8 +184,12 @@ void fntTexFont::getBBox ( const char *s, // unsigned int cc = (unsigned char) *(s++) ; unsigned int cc = (unsigned char) *(s++) ; - SG_LOG(SG_GUI,SG_ALERT, "cc=" << cc); - + if ((cc & 0x80)==0) { + SG_LOG(SG_GUI,SG_ALERT, "ASSIC cc=" << cc); + } + if ( (cc & 0XE0) == 1) { + SG_LOG(SG_GUI,SG_ALERT, "UTF8 cc=" << cc); + } if ( ! exists [ cc ] ) {