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

This commit is contained in:
zhongjin 2022-11-21 21:41:28 +08:00
parent 04715ab551
commit cec71cd7ba

View File

@ -155,7 +155,7 @@ 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);
@ -236,7 +236,8 @@ int fntTexFont::loadTXF ( const SGPath& path, GLenum mag, GLenum min )
//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,
(float) glyph.step / (float) max_height, (float) glyph.step / (float) max_height,
(float) glyph.x / (float) w + xstep, (float) glyph.x / (float) w + xstep,
(float)( glyph.x + glyph.w ) / (float) w + xstep, (float)( glyph.x + glyph.w ) / (float) w + xstep,