MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / dumpInfo

Method dumpInfo

Engine/source/gfx/gFont.cpp:247–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247void GFont::dumpInfo() const
248{
249 // Number and extent of mapped characters?
250 U32 mapCount = 0, mapBegin=0xFFFF, mapEnd=0;
251 for(U32 i=0; i<0x10000; i++)
252 {
253 if(mRemapTable[i] != -1)
254 {
255 mapCount++;
256 if(i<mapBegin) mapBegin = i;
257 if(i>mapEnd) mapEnd = i;
258 }
259 }
260
261
262 // Let's write out all the info we can on this font.
263 Con::printf(" '%s' %dpt", mFaceName.c_str(), mSize);
264 Con::printf(" - %d texture sheets, %d mapped characters.", mTextureSheets.size(), mapCount);
265
266 if(mapCount)
267 Con::printf(" - Codepoints range from 0x%x to 0x%x.", mapBegin, mapEnd);
268 else
269 Con::printf(" - No mapped codepoints.");
270 Con::printf(" - Platform font is %s.", (mPlatformFont ? "present" : "not present") );
271}
272
273//-----------------------------------------------------------------------------
274

Callers 1

gFont.cppFile · 0.80

Calls 3

printfFunction · 0.85
c_strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected