From a109b65d83a043a2b12f8e9c25b1fbefa2924230 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Tue, 22 Nov 2022 15:05:17 +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 | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/3rdparty/fonts/fnt.cxx b/3rdparty/fonts/fnt.cxx index 9d6ead9..5e08658 100644 --- a/3rdparty/fonts/fnt.cxx +++ b/3rdparty/fonts/fnt.cxx @@ -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 ; @@ -191,7 +191,7 @@ void fntTexFont::getBBox ( const char *s, } if ( (cc & 0XE0) == 0XE0) { - SG_LOG(SG_GUI,SG_ALERT, "UTF83 cc=" << cc); + //SG_LOG(SG_GUI,SG_ALERT, "UTF83 cc=" << cc); int x = (cc & 0X0F) << 4; @@ -199,7 +199,7 @@ void fntTexFont::getBBox ( const char *s, cc = (unsigned char) *(s++) ; - SG_LOG(SG_GUI,SG_ALERT, "UTF82 cc=" << cc); + //SG_LOG(SG_GUI,SG_ALERT, "UTF82 cc=" << cc); x= x + ((cc & 0x3C) >>2 ) ; @@ -207,7 +207,7 @@ void fntTexFont::getBBox ( const char *s, cc = (unsigned char) *(s++) ; - SG_LOG(SG_GUI,SG_ALERT, "UTF81 cc=" << cc); + //SG_LOG(SG_GUI,SG_ALERT, "UTF81 cc=" << cc); y= y + (cc & 0x3F); @@ -215,7 +215,7 @@ void fntTexFont::getBBox ( const char *s, cc = x * 256 + y; - SG_LOG(SG_GUI,SG_ALERT, "GBK cc=" << cc); + //SG_LOG(SG_GUI,SG_ALERT, "GBK cc=" << cc); } @@ -294,27 +294,27 @@ void fntTexFont::puts ( sgVec3 curpos, float pointsize, float italic, const char else if ( (cc & 0XE0) == 0XE0) { - SG_LOG(SG_GUI,SG_ALERT, "UTF83 cc=" << cc); + //SG_LOG(SG_GUI,SG_ALERT, "UTF83 cc=" << cc); int x = (cc & 0X0F) << 4; //SG_LOG(SG_GUI,SG_ALERT, "UTF8 cc<<4 " << x); cc = (unsigned char) *(s++) ; - SG_LOG(SG_GUI,SG_ALERT, "UTF82 cc=" << cc); + //SG_LOG(SG_GUI,SG_ALERT, "UTF82 cc=" << cc); x= x + ((cc & 0x3C) >>2 ) ; int y = (cc & 0x03) << 6 ; cc = (unsigned char) *(s++) ; - SG_LOG(SG_GUI,SG_ALERT, "UTF81 cc=" << cc); + //SG_LOG(SG_GUI,SG_ALERT, "UTF81 cc=" << cc); y= y + (cc & 0x3F); //SG_LOG(SG_GUI,SG_ALERT, "x=" << x << ",y=" << y); cc = x * 256 + y; - SG_LOG(SG_GUI,SG_ALERT, "GBK cc=" << cc); + //SG_LOG(SG_GUI,SG_ALERT, "GBK cc=" << cc); } - SG_LOG(SG_GUI,SG_ALERT, "puts->low_putch " << cc); + //SG_LOG(SG_GUI,SG_ALERT, "puts->low_putch " << cc); //low_putch ( curpos, pointsize, italic, *s ) ; low_putch ( curpos, pointsize, italic, cc ) ;