From bd3528d580f65768ab5e0f5e99e116cbbbd0c49b Mon Sep 17 00:00:00 2001 From: zhongjin Date: Tue, 22 Nov 2022 12:03:40 +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 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/3rdparty/fonts/fnt.cxx b/3rdparty/fonts/fnt.cxx index 0dc5e15..098d38e 100644 --- a/3rdparty/fonts/fnt.cxx +++ b/3rdparty/fonts/fnt.cxx @@ -61,7 +61,7 @@ float fntTexFont::low_putch ( sgVec3 curpos, float pointsize, cc = cc - 'a' + 'A' ; */ - SG_LOG(SG_GUI,SG_ALERT, "未找到字符"); + SG_LOG(SG_GUI,SG_ALERT, "low_putch 未找到字符 cc=" << cc); if ( cc == ' ' ) { @@ -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 ; @@ -236,7 +236,7 @@ void fntTexFont::getBBox ( const char *s, } if ( ! exists [ cc ] ) { - SG_LOG(SG_GUI,SG_ALERT, "未找到字符"); + SG_LOG(SG_GUI,SG_ALERT, "getBBox 未找到字符 cc=" << cc); continue ; } @@ -259,7 +259,7 @@ void fntTexFont::getBBox ( const char *s, } //zhongjin - SG_LOG(SG_GUI,SG_ALERT, "......................"); + //SG_LOG(SG_GUI,SG_ALERT, "......................"); if ( left != NULL ) *left = l * pointsize ; @@ -287,6 +287,9 @@ void fntTexFont::puts ( sgVec3 curpos, float pointsize, float italic, const char curpos[1] -= pointsize ; } else + + SG_LOG(SG_GUI,SG_ALERT, "low_putch " << *s); + low_putch ( curpos, pointsize, italic, *s ) ; s++ ;