| 245 | } |
| 246 | |
| 247 | void 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 | |