From c5a811c728e33c752ef6ce9573ec570b984f740b Mon Sep 17 00:00:00 2001 From: zhongjin Date: Mon, 21 Nov 2022 21:05:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'3rdparty/fonts/fntTXF.cxx?= =?UTF-8?q?'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 3rdparty/fonts/fntTXF.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/3rdparty/fonts/fntTXF.cxx b/3rdparty/fonts/fntTXF.cxx index dedf53f..c58b514 100755 --- a/3rdparty/fonts/fntTXF.cxx +++ b/3rdparty/fonts/fntTXF.cxx @@ -157,7 +157,6 @@ int fntTexFont::loadTXF ( const SGPath& path, GLenum mag, GLenum min ) //zhongjin SG_LOG(SG_GUI,SG_ALERT, "-----------------------------------------------------------"); SG_LOG(SG_GUI,SG_ALERT, "loadTXF " << ps); - SG_LOG(SG_GUI,SG_ALERT, "-----------------------------------------------------------"); #if defined(SG_WINDOWS) @@ -210,6 +209,9 @@ int fntTexFont::loadTXF ( const SGPath& path, GLenum mag, GLenum min ) float xstep = 0.5f / (float) w ; float ystep = 0.5f / (float) h ; + //zhongjin + SG_LOG(SG_GUI,SG_ALERT, "num_glyphs=" << num_glyphs); + int i, j ; /* @@ -231,6 +233,9 @@ int fntTexFont::loadTXF ( const SGPath& path, GLenum mag, GLenum min ) glyph . x = _fnt_readShort () ; glyph . y = _fnt_readShort () ; + //zhongjin + SG_LOG(SG_GUI,SG_ALERT, "ch=" << glyph.ch); + setGlyph ( (char) glyph.ch, (float) glyph.step / (float) max_height, (float) glyph.x / (float) w + xstep,