From cec71cd7ba220cbfa5f0428081a879dc05b43a33 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Mon, 21 Nov 2022 21:41:28 +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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/3rdparty/fonts/fntTXF.cxx b/3rdparty/fonts/fntTXF.cxx index c58b514..e6354e4 100755 --- a/3rdparty/fonts/fntTXF.cxx +++ b/3rdparty/fonts/fntTXF.cxx @@ -155,7 +155,7 @@ int fntTexFont::loadTXF ( const SGPath& path, GLenum mag, GLenum min ) const auto ps = path.utf8Str(); //zhongjin - SG_LOG(SG_GUI,SG_ALERT, "-----------------------------------------------------------"); + SG_LOG(SG_GUI,SG_ALERT, "----------------------------------------"); SG_LOG(SG_GUI,SG_ALERT, "loadTXF " << ps); @@ -236,7 +236,8 @@ int fntTexFont::loadTXF ( const SGPath& path, GLenum mag, GLenum min ) //zhongjin SG_LOG(SG_GUI,SG_ALERT, "ch=" << glyph.ch); - setGlyph ( (char) glyph.ch, +// setGlyph ( (char) glyph.ch, + setGlyph ( (int) glyph.ch, (float) glyph.step / (float) max_height, (float) glyph.x / (float) w + xstep, (float)( glyph.x + glyph.w ) / (float) w + xstep,