更新 '3rdparty/fonts/fntTXF.cxx'

This commit is contained in:
zhongjin 2022-11-21 22:33:45 +08:00
parent b3ebfbf7fa
commit bafc1ec27a

View File

@ -155,8 +155,8 @@ int fntTexFont::loadTXF ( const SGPath& path, GLenum mag, GLenum min )
const auto ps = path.utf8Str(); const auto ps = path.utf8Str();
//zhongjin //zhongjin
SG_LOG(SG_GUI,SG_ALERT, "----------------------------------------"); // SG_LOG(SG_GUI,SG_ALERT, "----------------------------------------");
SG_LOG(SG_GUI,SG_ALERT, "loadTXF " << ps); // SG_LOG(SG_GUI,SG_ALERT, "loadTXF " << ps);
#if defined(SG_WINDOWS) #if defined(SG_WINDOWS)
@ -210,7 +210,7 @@ int fntTexFont::loadTXF ( const SGPath& path, GLenum mag, GLenum min )
float ystep = 0.5f / (float) h ; float ystep = 0.5f / (float) h ;
//zhongjin //zhongjin
SG_LOG(SG_GUI,SG_ALERT, "num_glyphs=" << num_glyphs); //SG_LOG(SG_GUI,SG_ALERT, "num_glyphs=" << num_glyphs);
int i, j ; int i, j ;
@ -234,7 +234,7 @@ int fntTexFont::loadTXF ( const SGPath& path, GLenum mag, GLenum min )
glyph . y = _fnt_readShort () ; glyph . y = _fnt_readShort () ;
//zhongjin //zhongjin
SG_LOG(SG_GUI,SG_ALERT, "ch=" << glyph.ch); //SG_LOG(SG_GUI,SG_ALERT, "ch=" << glyph.ch);
// setGlyph ( (char) glyph.ch, // setGlyph ( (char) glyph.ch,
setGlyph ( (int) glyph.ch, setGlyph ( (int) glyph.ch,